Skip to content
Snippets Groups Projects
Commit 101e0033 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Testing presence of sub-templates

parent a9ad5ff9
No related branches found
No related tags found
No related merge requests found
import os
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.cache import cache
......@@ -37,6 +39,26 @@ class SignUpTests(TestCase):
self.assertEqual(get_user_model().objects.count(), user_count + 1)
class TestWithTemplatesInPlace(SignUpTests):
def setUp(self):
super().setUp()
def test_with_templates(self):
templates = [
"test_app_1/templates/test_app_1/fork_me.html",
"test_app_1/templates/test_app_1/nav_bar.html",
"test_app_1/templates/test_app_1/last_update.html",
]
for t in templates:
open(t, 'a').close()
self.test_works()
self.test_sign_up_form_view()
for t in templates:
os.remove(t)
class SuperuserSignUpTests(TestCase):
def setUp(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment