Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make algo tests much faster to run #93

Merged
merged 11 commits into from
Dec 4, 2024
Prev Previous commit
Next Next commit
Remove outdated code in project/conftest.py
Signed-off-by: Fabrice Normandin <[email protected]>
lebrice committed Dec 4, 2024
commit 19af4807d7fd385c59e5d0ac7e3d42e32f5054bd
8 changes: 0 additions & 8 deletions project/conftest.py
Original file line number Diff line number Diff line change
@@ -686,14 +686,6 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
metafunc.parametrize(arg_name, arg_values, indirect=indirect, _param_mark=marker)


def pytest_ignore_collect(path: str):
p = Path(path)
# fixme: Trying to fix doctest issues for project/configs/algorithm/lr_scheduler/__init__.py::project.configs.algorithm.lr_scheduler.StepLRConfig
if p.name in ["lr_scheduler", "optimizer"] and "configs" in p.parts:
return True
return False


def pytest_configure(config: pytest.Config):
config.addinivalue_line("markers", "fast: mark test as fast to run (after fixtures are setup)")
config.addinivalue_line(