Browse Source

CONFIG_FILES is dict now. Need to write parser tests

neo
Raphael Roberts 6 years ago
parent
commit
56a03d9814
  1. 8
      tests/tests.py

8
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
Loading…
Cancel
Save