fix: add common DataTestCase
for use in other packages
This commit is contained in:
parent
7ee8398718
commit
2edeac0d83
4 changed files with 98 additions and 41 deletions
|
@ -10,10 +10,10 @@ import pytest
|
|||
from wuttjamaican import conf
|
||||
from wuttjamaican.exc import ConfigurationError
|
||||
from wuttjamaican.app import AppHandler
|
||||
from wuttjamaican.testing import FileConfigTestCase
|
||||
from wuttjamaican.testing import FileTestCase
|
||||
|
||||
|
||||
class TestWuttaConfig(FileConfigTestCase):
|
||||
class TestWuttaConfig(FileTestCase):
|
||||
|
||||
def test_contstructor_basic(self):
|
||||
config = conf.WuttaConfig()
|
||||
|
@ -505,7 +505,7 @@ class TestGenericDefaultFiles(TestCase):
|
|||
self.assertEqual(len(files), 0)
|
||||
|
||||
|
||||
class TestGetConfigPaths(FileConfigTestCase):
|
||||
class TestGetConfigPaths(FileTestCase):
|
||||
|
||||
def test_winsvc(self):
|
||||
myconf = self.write_file('my.conf', """
|
||||
|
@ -523,7 +523,7 @@ winsvc.RattailFileMonitor = /path/to/other/file
|
|||
self.assertEqual(files, [])
|
||||
|
||||
|
||||
class TestMakeConfig(FileConfigTestCase):
|
||||
class TestMakeConfig(FileTestCase):
|
||||
|
||||
# nb. we use appname='wuttatest' in this suite to avoid any
|
||||
# "valid" default config files, env vars etc. which may be present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue