From 56a03d9814b181291c756be741706f6547e94c17 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 20 Nov 2019 18:10:18 -0600 Subject: [PATCH] CONFIG_FILES is dict now. Need to write parser tests --- tests/tests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/tests.py b/tests/tests.py index 32dfcc5..e69941a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -4,7 +4,9 @@ import unittest import tempfile samples_dir = os.path.join(sys.path[0], "sample_configs") -CONFIG_FILES = list(os.path.join(samples_dir, file) for file in os.listdir(samples_dir)) +CONFIG_FILES = dict( + (file, os.path.join(samples_dir, file)) for file in os.listdir(samples_dir) +) class ReadWriteTest(unittest.TestCase): @@ -20,3 +22,7 @@ class TestTempFile(ReadWriteTest): self.write_file.write("hello") self.write_file.seek(0) self.assertEqual(self.write_file.read(), "hello") + + +class TestParser(ReadWriteTest): + pass