fix: add basic support for wutta-continuum data versioning/history
not much "support" per se in here, mostly some stubs to allow for smooth operation if/when it is installed
This commit is contained in:
parent
7002986cb7
commit
2fa82bee8c
8 changed files with 72 additions and 23 deletions
|
@ -200,6 +200,19 @@ class TestAppHandler(FileTestCase):
|
|||
value = self.app.get_setting(session, 'foo')
|
||||
self.assertIsNone(value)
|
||||
|
||||
def test_continuum_is_enabled(self):
|
||||
|
||||
# false by default
|
||||
with patch.object(self.app, 'providers', new={}):
|
||||
self.assertFalse(self.app.continuum_is_enabled())
|
||||
|
||||
# but "any" provider technically could enable it...
|
||||
class MockProvider:
|
||||
def continuum_is_enabled(self):
|
||||
return True
|
||||
with patch.object(self.app, 'providers', new={'mock': MockProvider()}):
|
||||
self.assertTrue(self.app.continuum_is_enabled())
|
||||
|
||||
def test_model(self):
|
||||
try:
|
||||
from wuttjamaican.db import model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue