diff --git a/conf/urls.py b/conf/urls.py index 8512891..a0d3dae 100644 --- a/conf/urls.py +++ b/conf/urls.py @@ -1,6 +1,7 @@ from django.conf import settings from django.contrib import admin from django.urls import path + from for_runners.views.media_files import UserMediaView @@ -10,7 +11,6 @@ if settings.PATH_URL: urlpatterns = [ path(f'{settings.PATH_URL}/', admin.site.urls), path(f'{settings.PATH_URL}/media//', UserMediaView.as_view()), - # TODO: https://github.com/jedie/django-for-runners/issues/25 # path(settings.MEDIA_URL.lstrip('/'), include('django_tools.serve_media_app.urls')), ] diff --git a/tests/conftest.py b/tests/conftest.py index e7d56d8..75f20f0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -11,7 +11,6 @@ import sys from pathlib import Path import django - from django_yunohost_integration.local_test import create_local_test diff --git a/tests/test_django_project.py b/tests/test_django_project.py index dad61a6..d2bb624 100644 --- a/tests/test_django_project.py +++ b/tests/test_django_project.py @@ -1,4 +1,3 @@ -import for_runners from axes.models import AccessLog from bx_django_utils.test_utils.html_assertion import HtmlAssertionMixin from django.conf import settings @@ -7,10 +6,11 @@ from django.test import override_settings from django.test.testcases import TestCase from django.urls import NoReverseMatch from django.urls.base import reverse - from django_yunohost_integration.test_utils import generate_basic_auth from django_yunohost_integration.views import request_media_debug_view +import for_runners + @override_settings(DEBUG=False) class DjangoYnhTestCase(HtmlAssertionMixin, TestCase): diff --git a/tests/test_project_setup.py b/tests/test_project_setup.py index 19b98ff..6c091e8 100644 --- a/tests/test_project_setup.py +++ b/tests/test_project_setup.py @@ -4,11 +4,12 @@ import shutil import subprocess from pathlib import Path -import for_runners import tomli from bx_django_utils.filename import clean_filename from bx_py_utils.path import assert_is_dir, assert_is_file +import for_runners + PACKAGE_ROOT = Path(__file__).parent.parent