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

Put data fixture for all tests into separate file to reduce code duplication #107

Open
amichuda opened this issue Jun 24, 2024 · 0 comments

Comments

@amichuda
Copy link
Collaborator

Right now test_CL, test_HC, test_seeds and test_weights all have a data function.

We can put the data fixture into a conftest.py file that is global so that all tests can use the data function.

I also noticed that sometimes data() also takes a G parameter. We can use pytest.mark.parameterize to allow for multiple tests at different numbers of clusters for test robustness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant