diff options
Diffstat (limited to 'core/TESTS')
-rw-r--r-- | core/TESTS/test_imports.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/TESTS/test_imports.py b/core/TESTS/test_imports.py index 5474c63..d0b77c5 100644 --- a/core/TESTS/test_imports.py +++ b/core/TESTS/test_imports.py @@ -143,6 +143,25 @@ class SimpleTest(SimpleTestCase): from troggle.core.views.statistics import dataissues, pathsreport, stats from troggle.core.views.survex import survexcavesingle, survexcaveslist, svx +class ImportTest(TestCase): + @classmethod + def setUpTestData(cls): + import troggle.settings as settings + from troggle.parsers.logbooks import LOGBOOKS_DIR, DEFAULT_LOGBOOK_FILE + + LOGBOOKS_PATH = settings.EXPOWEB / LOGBOOKS_DIR + test_year = "1986" + self.test_logbook = LOGBOOKS_PATH / test_year / DEFAULT_LOGBOOK_FILE + + def setUp(self): + pass + + def tearDown(self): + pass + + def test_logbook_exists(self): + self.assertTrue(self.test_logbook.is_file()) + class SubprocessTest(TestCase): @classmethod |