Athanasius
80b99195eb
Differentiate test docstrings.
2021-04-01 14:45:52 +01:00
Athanasius
12e5d26276
Add tests on JournalLock.set_path_from_journaldir()
2021-04-01 14:45:51 +01:00
Athanasius
7bd6e8ff58
Move test & fixture into a class.
...
This is for then adding more tests.
2021-04-01 14:45:51 +01:00
Athanasius
c344d612ad
No need to str(tmpdir), as comparison works without now.
2021-04-01 14:45:51 +01:00
Athanasius
509a1f2c2e
Rename mock_get_str() to mock_journaldir()
2021-04-01 14:45:51 +01:00
Athanasius
a325c62765
Generalise mock get_str() for re-use, and add asserts
...
* mock get_str() is now via a fixture so it can be re-used in more than
one test, avoiding DRY issue.
* Some actual tests, in the form of asserts, added to
test_journal_lock_init().
2021-04-01 14:45:51 +01:00
Athanasius
8612e772cf
tests/journal_lock.py: Initial framework.
...
No actual test per se yet, but this runs with `pytest -k 'journal_lock'`
2021-04-01 14:45:51 +01:00
Athanasius
c43343742a
tests: Move the config.py related files into tests/config.py/
...
In general I think this will keep things neater:
1. Create a directory inside tests/ named after the file the tests are
for.
2. Put all files for that test inside this new directory.
2021-04-01 14:45:51 +01:00
A_D
ee4451560a
added regression test
2021-04-01 14:45:50 +01:00
A_D
8a81caeb8b
Ensured that we save and reload the config
2021-04-01 14:45:46 +01:00
A_D
18f4e49406
Final type annotations
2021-04-01 14:45:46 +01:00
A_D
640bda0d0e
Disabled mypy in old_config
2021-04-01 14:45:46 +01:00
A_D
9fd1da1819
Added space workaround to test_list
2021-04-01 14:45:46 +01:00
A_D
f8bc7290fe
Made sure we dont test with big ints on windows
2021-04-01 14:45:46 +01:00
A_D
2de8967424
Delete keys only once unless on linux
2021-04-01 14:45:46 +01:00
A_D
9c3de53a3b
Added config tests
2021-04-01 14:45:45 +01:00