Skip to content
Snippets Groups Projects
Commit 34f4bcbe authored by nfontrod's avatar nfontrod
Browse files

tests/test.py: add config file for testing

parent 07cd43ba
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ from pathlib import Path
from typing import List
import unittest
import sys
sys.path.insert(0, str(Path(__file__).parents[1].resolve()))
......@@ -30,12 +31,12 @@ def get_ignored_files() -> List[str]:
# Loading every python file in this folder
list_mod = [str(mfile.relative_to(Path(__file__).resolve().parents[1]))
for mfile in list((Path(__file__).resolve().parents[1] / "src").rglob('*.py'))]
for mfile in
list((Path(__file__).resolve().parents[1] / "src").rglob('*.py'))]
list_mod2 = [m.replace('.py', '').replace('/', '.') for m in list_mod
if '__init__' not in m
and '__main__' not in m
and 'test' not in m
and 'config' not in m]
and 'test' not in m]
final_mod = [mod for mod in list_mod2 if mod not in get_ignored_files()]
......@@ -46,4 +47,4 @@ def load_tests(loader, tests, ignore):
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment