wutta-continuum/tests/test_app.py
2024-08-27 19:18:35 -05:00

22 lines
584 B
Python

# -*- 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
self.config.setdefault('wutta_continuum.enable_versioning', 'true')
self.assertTrue(provider.continuum_is_enabled())