move wwvbgen testcases inside the new test/ directory
This commit is contained in:
parent
87b6236416
commit
93bf28a4cc
29 changed files with 2 additions and 3 deletions
|
|
@ -30,13 +30,13 @@ class WWVBMinute2k(wwvb.WWVBMinute):
|
|||
|
||||
|
||||
class WWVBTestCase(unittest.TestCase):
|
||||
"""Test each expected output in tests/. Some outputs are from another program, some are from us"""
|
||||
"""Test each expected output in wwvbgen_testcases/. Some outputs are from another program, some are from us"""
|
||||
|
||||
maxDiff = 131072
|
||||
|
||||
def test_cases(self) -> None:
|
||||
"""Generate a test case for each expected output in tests/"""
|
||||
for test in pathlib.Path("tests").glob("*"):
|
||||
for test in ((pathlib.Path(__file__).parent) / "wwvbgen_testcases").glob("*"):
|
||||
with self.subTest(test=test):
|
||||
text = test.read_text(encoding="utf-8")
|
||||
lines = [line for line in text.split("\n") if not line.startswith("#")]
|
||||
|
|
|
|||
|
|
@ -32,4 +32,3 @@ WWVB timecode: year=2020 days=001 hour=00 min=00 dst=0 ut1=-200 ly=1 ls=0 --chan
|
|||
|
||||
2020-001 00:09 200001001200000000020000000002000100010200100001020000010002
|
||||
001110110100001100010101000000100000101101010010110000110110
|
||||
|
||||
Loading…
Reference in a new issue