diff --git a/CHANGELOG.md b/CHANGELOG.md index ecd585f5c1..c58ffb0a93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ### Modules +- TEMPLATE: fix nf-test scope to ignore nf-core module/swf tests ([#3609](https://github.com/nf-core/tools/pull/3609)) + ### Subworkflows ### General diff --git a/nf_core/pipeline-template/nf-test.config b/nf_core/pipeline-template/nf-test.config index 889df7601c..3a1fff59f4 100644 --- a/nf_core/pipeline-template/nf-test.config +++ b/nf_core/pipeline-template/nf-test.config @@ -9,7 +9,7 @@ config { configFile "tests/nextflow.config" // ignore tests coming from the nf-core/modules repo - ignore 'modules/nf-core/**/*', 'subworkflows/nf-core/**/*' + ignore 'modules/nf-core/**/tests/*', 'subworkflows/nf-core/**/tests/*' // run all test with defined profile(s) from the main nextflow.config profile "test" diff --git a/pyproject.toml b/pyproject.toml index 775f04c9a1..87a0972426 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,8 @@ requires = ["setuptools>=40.6.0", "wheel"] markers = ["datafiles: load datafiles"] testpaths = ["tests"] python_files = ["test_*.py"] +asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" norecursedirs = [ ".*", "build", diff --git a/tests/pipelines/test_create_app.py b/tests/pipelines/test_create_app.py index 4880562b39..d87d016b3e 100644 --- a/tests/pipelines/test_create_app.py +++ b/tests/pipelines/test_create_app.py @@ -12,11 +12,11 @@ async def test_app_bindings(): app = PipelineCreateApp() async with app.run_test() as pilot: # Test pressing the D key - assert app.dark + assert app.theme == "textual-dark" await pilot.press("d") - assert not app.dark + assert app.theme == "textual-light" await pilot.press("d") - assert app.dark + assert app.theme == "textual-dark" # Test pressing the Q key await pilot.press("q")