Files @ 93889b9694f4
Branch filter:

Location: rattail-project/rattail/tests/trainwreck/test_config.py

lance
bump: version 0.18.12 → 0.19.0
# -*- coding: utf-8; -*-

from rattail.trainwreck import config as mod
from rattail.testing import DataTestCase

try:
    import sqlalchemy
except ImportError:
    pass
else:

    class TestTrainwreckConfig(DataTestCase):

        def test_configure(self):
            self.assertFalse(hasattr(self.config, 'trainwreck_engines'))
            ext = mod.TrainwreckConfig()
            ext.configure(self.config)
            self.assertEqual(self.config.trainwreck_engines, {})