Skip to content

Commit

Permalink
Add PyTest IDs for better readability and filtering (#409)
Browse files Browse the repository at this point in the history
* Added additional local .gitignores and pytest.ini options

* Added test names

* Update tests/conftest.py

fix linting error

* Update tests/conftest.py

trying again to fix linting

* fix trailing comma

* revert gitignore and pyproject.toml changes

* Update tests/conftest.py

---------

Co-authored-by: Chris Kucharczyk <[email protected]>
Co-authored-by: Chris Kucharczyk <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2025
1 parent 9a754f5 commit 064eeba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ def fast(request):

def pytest_generate_tests(metafunc):
# setup config fixture to get all of the results from config_generator
def make_test_id(config):
return f"{config['environment_manager']}-{config['dependency_file']}-{config['pydata_packages']}"

if "config" in metafunc.fixturenames:
metafunc.parametrize(
"config", config_generator(metafunc.config.getoption("fast"))
"config",
config_generator(metafunc.config.getoption("fast")),
ids=make_test_id,
)


Expand Down

0 comments on commit 064eeba

Please sign in to comment.