diff --git a/build/urls.py b/build/urls.py index f349fb5..789b93b 100644 --- a/build/urls.py +++ b/build/urls.py @@ -16,6 +16,7 @@ from django.conf.urls import url from . import views +app_name = "build" urlpatterns = [ url(r"^$", views.BuildReleaseList.as_view(), name="list"), url( diff --git a/panel/urls.py b/panel/urls.py index 02388e2..01d1537 100644 --- a/panel/urls.py +++ b/panel/urls.py @@ -16,6 +16,7 @@ from django.conf.urls import url from . import views +app_name = "panel" urlpatterns = [ url(r"^$", views.index, name="index"), url( diff --git a/release_dashboard/urls.py b/release_dashboard/urls.py index a20e722..4029ae7 100644 --- a/release_dashboard/urls.py +++ b/release_dashboard/urls.py @@ -18,6 +18,7 @@ from .views import build from .views import docker from .views import Index +app_name = "release_dashboard" urlpatterns = [ url(r"^$", Index.as_view(), name="index"), url(r"^old/$", Index.as_view(old_links=True), name="index_old"), diff --git a/repoapi/urls.py b/repoapi/urls.py index f6666f3..40be450 100644 --- a/repoapi/urls.py +++ b/repoapi/urls.py @@ -1,12 +1,15 @@ # Copyright (C) 2015 The Sipwise Team - http://sipwise.com +# # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. +# # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # more details. +# # You should have received a copy of the GNU General Public License along # with this program. If not, see . import object_tools @@ -87,23 +90,20 @@ api_patterns = [ docker.DockerTagDetail.as_view(), name="dockertag-detail", ), - url(r"^build/", include("build.urls", namespace="build")), + url(r"^build/", include("build.urls")), ] api_patterns = format_suffix_patterns(api_patterns) urlpatterns = [ - url(r"^object-tools/", include(object_tools.tools.urls)), - url(r"^admin/", include(admin.site.urls)), + url(r"^object-tools/", object_tools.tools.urls), + url(r"^admin/", admin.site.urls), url(r"^", include(api_patterns)), url( r"^api-auth/", include("rest_framework.urls", namespace="rest_framework"), ), url(r"^docs/", views.schema_view), - url(r"^panel/", include("panel.urls", namespace="panel")), - url( - r"^release_panel/", - include("release_dashboard.urls", namespace="release_dashboard"), - ), + url(r"^panel/", include("panel.urls")), + url(r"^release_panel/", include("release_dashboard.urls"),), ] diff --git a/tox.ini b/tox.ini index c2444ef..b01c722 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,12 @@ DJANGO_SETTINGS_MODULE = repoapi.settings.test # -- recommended but optional: python_files = tests.py test_*.py *_tests.py +# build dir is in the default +# https://docs.pytest.org/en/latest/reference.html#confval-norecursedirs +norecursedirs = .git +# make warnings an error if is from repoapi +filterwarnings = + error::django.utils.deprecation.RemovedInNextVersionWarning:repoapi[.*] [coverage:run] data_file = ${RESULTS}/.coverage