2024-08-27 19:18:35 -05:00
|
|
|
# -*- coding: utf-8; -*-
|
|
|
|
|
|
|
|
from wuttjamaican.testing import DataTestCase
|
|
|
|
|
|
|
|
from wutta_continuum import app as mod
|
|
|
|
|
|
|
|
|
|
|
|
class TestWuttaContinuumAppProvider(DataTestCase):
|
|
|
|
|
|
|
|
def make_provider(self):
|
|
|
|
return mod.WuttaContinuumAppProvider(self.config)
|
|
|
|
|
|
|
|
def test_continuum_is_enabled(self):
|
|
|
|
|
|
|
|
# off by default
|
|
|
|
provider = self.make_provider()
|
|
|
|
self.assertFalse(provider.continuum_is_enabled())
|
|
|
|
|
|
|
|
# but can be turned on
|
2025-08-31 12:45:58 -05:00
|
|
|
self.config.setdefault("wutta_continuum.enable_versioning", "true")
|
2024-08-27 19:18:35 -05:00
|
|
|
self.assertTrue(provider.continuum_is_enabled())
|