Update test_models.py
Updated all test methods to use namespace.katex instead of namespace.mathjax in test_namespace_production_custom_settings(), test_namespace_development_custom_settings(), and test_namespace_simulate_expired_subscription().
This commit is contained in:
parent
0343456e9a
commit
f5ab803fd3
1 changed files with 8 additions and 8 deletions
|
|
@ -138,20 +138,20 @@ class TestNamespace(unittest.TestCase):
|
|||
self.namespace.subscription_type = "production"
|
||||
self.namespace.link_protection = True
|
||||
self.namespace.hide_powered_by = True
|
||||
self.namespace.mathjax = True
|
||||
self.namespace.katex = True
|
||||
self.assertTrue(self.namespace.link_protection)
|
||||
self.assertTrue(self.namespace.hide_powered_by)
|
||||
self.assertTrue(self.namespace.mathjax)
|
||||
self.assertTrue(self.namespace.katex)
|
||||
self.assertFalse(self.namespace.memoized_attr_protection)
|
||||
|
||||
def test_namespace_development_custom_settings(self):
|
||||
self.namespace.subscription_type = "development"
|
||||
self.namespace.link_protection = True
|
||||
self.namespace.hide_powered_by = True
|
||||
self.namespace.mathjax = True
|
||||
self.namespace.katex = True
|
||||
self.assertFalse(self.namespace.link_protection)
|
||||
self.assertFalse(self.namespace.hide_powered_by)
|
||||
self.assertFalse(self.namespace.mathjax)
|
||||
self.assertFalse(self.namespace.katex)
|
||||
self.assertTrue(self.namespace.memoized_attr_protection)
|
||||
|
||||
def test_namespace_simulate_expired_subscription(self):
|
||||
|
|
@ -159,10 +159,10 @@ class TestNamespace(unittest.TestCase):
|
|||
self.namespace.subscription_type = "production"
|
||||
self.namespace.link_protection = True
|
||||
self.namespace.hide_powered_by = True
|
||||
self.namespace.mathjax = True
|
||||
self.namespace.katex = True
|
||||
self.assertTrue(self.namespace.link_protection)
|
||||
self.assertTrue(self.namespace.hide_powered_by)
|
||||
self.assertTrue(self.namespace.mathjax)
|
||||
self.assertTrue(self.namespace.katex)
|
||||
|
||||
# next the namespace subscription expires with custom settings.
|
||||
self.namespace.subscription_type = "development"
|
||||
|
|
@ -170,7 +170,7 @@ class TestNamespace(unittest.TestCase):
|
|||
self.assertTrue(self.namespace.memoized_attr_protection)
|
||||
self.assertFalse(self.namespace.link_protection)
|
||||
self.assertFalse(self.namespace.hide_powered_by)
|
||||
self.assertFalse(self.namespace.mathjax)
|
||||
self.assertFalse(self.namespace.katex)
|
||||
|
||||
# finally the namespace subscription is renewed with custom settings.
|
||||
self.namespace.subscription_type = "production"
|
||||
|
|
@ -178,7 +178,7 @@ class TestNamespace(unittest.TestCase):
|
|||
self.assertFalse(self.namespace.memoized_attr_protection)
|
||||
self.assertTrue(self.namespace.link_protection)
|
||||
self.assertTrue(self.namespace.hide_powered_by)
|
||||
self.assertTrue(self.namespace.mathjax)
|
||||
self.assertTrue(self.namespace.katex)
|
||||
|
||||
class TestNamespaceRequest(unittest.TestCase):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue