Skip to content

Commit

Permalink
fixup! remove debug mode login routes
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Nov 18, 2024
1 parent bb2d297 commit 9e86ae5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lacommunaute/utils/tests/tests_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@ def _clear_url_caches():
sys.modules.pop("config.urls", None)


def test_django_urls_dev(settings):
settings.DEBUG = True
assert reverse("login") == "/login/"


def test_django_urls_prod(settings):
settings.DEBUG = False
with pytest.raises(NoReverseMatch):
reverse("login")
with pytest.raises(NoReverseMatch):
reverse("djdt:render_panel")

Expand Down

0 comments on commit 9e86ae5

Please sign in to comment.