mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2026-10-31 16:15:09 -07:00
test length of urlpatterns list from accounts.url
This commit is contained in:
1 parent
c906e6599c
commit
3562a8058e
1 file changed
+7
@@ -3,6 +3,13 @@ from django.urls import reverse, resolve
|
||||
from accounts.views import log_out, password_change, register, edit_profile
|
||||
from accounts.login import log_in, two_factor_input
|
||||
from accounts.enable_totp import enable_totp, disable_totp
|
||||
from accounts.urls import urlpatterns
|
||||
|
||||
|
||||
class TestNumUrls(SimpleTestCase):
|
||||
|
||||
def test_num_urls(self):
|
||||
self.assertEquals(len(urlpatterns), 12)
|
||||
|
||||
|
||||
class TestViewsUrls(SimpleTestCase):
|
||||
|
||||
Reference in new issue
Block a user