Closed ckunki closed 4 months ago
Suggestion for the parameterized fixture with cli parameter
@fixture(scope="module", params=[
python_file.name
for python_file in sorted(TEST_RESOURCE_PATH.glob("nbtest_*.py"))
if python_file.is_file()
])
def notebook_test_file(request):
if request.options.get("cli-parameter") == request.param:
return request.param
else:
pytest.skip("Test disabled")
def test_notebook(notebook_test_container_with_log, notebook_test_file):
...
Enable to run Notebook Tests in Parallel GitHub Workflow Runs.
Currently,
@pytest.mark.skip(reason="Want to get the results for other tests quickly")
Sub Tasks
Enhancing notebook_test_runner.test_notebook()