Skip to content

Commit

Permalink
tests: do not try to patch common workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed May 30, 2024
1 parent c631e2b commit e0f8a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/snappy_pipeline/workflows/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,8 @@ def patch_module_fs(module_name: str, fake_fs, mocker):
# validation, make sure to patch both the main module and the model module
modules = [module_name]
if module_name.startswith("snappy_pipeline.workflows.") and not module_name.endswith(".model"):
if not module_name.endswith("abstract"):
# TODO replace with more robust solution
if not module_name.endswith("abstract") and not ".common." in module_name:
modules.append(module_name + ".model")

for module_name in modules:
Expand Down

0 comments on commit e0f8a2e

Please sign in to comment.