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

Refactor test parametrization #694

Open
4 tasks
padix-key opened this issue Nov 5, 2024 · 0 comments
Open
4 tasks

Refactor test parametrization #694

padix-key opened this issue Nov 5, 2024 · 0 comments

Comments

@padix-key
Copy link
Member

padix-key commented Nov 5, 2024

Many tests in the tests/ directory are parametrized. However, there are some aspects of these parametrizations that be made cleaner:

  • Replace itertools.product by multiple @pytest.mark.parametrize decorators
  • Use ids parameter of @pytest.mark.parametrize to create clearer string representations of a test
  • Use pathlib.Path instead of os.path to represent paths as the syntax is much more concise
  • Move test structures into tests/structure/data/common
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant