new FT test_theme for theme switcher functionality; theme-switcher content added to home.html, several dashboard views & urls, all appropriate ITs & UTs; lyric user model saves theme (migrations run); django-compressor and django-libsass libraries added to dependencies
This commit is contained in:
@@ -50,3 +50,8 @@ class UserManagerTest(TestCase):
|
||||
password="correct-password",
|
||||
)
|
||||
self.assertTrue(user.check_password("correct-password"))
|
||||
|
||||
class UserThemeTest(TestCase):
|
||||
def test_theme_field_defaults_to_theme_default(self):
|
||||
user = User.objects.create(email="a@b.cde")
|
||||
self.assertEqual(user.theme, "theme-default")
|
||||
|
||||
Reference in New Issue
Block a user