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

Inline fixtures in tests/test_variants.py #4714

Merged

Conversation

kenodegard
Copy link
Contributor

Description

The following fixtures had limit usage and benefitted from being inlined:

  • numpy_version_ignored
  • single_version
  • no_numpy_version

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

The python specific variant is an insignificant detail that adds confusion to what the test is targeting.
This fixture is only used once, bring it inline for simpler code. Furthermore, the test using this fixture is broken and needs to be investigated separately.
Combines test_get_package_variants_from_file and test_get_package_variants_from_dictionary_of_lists and parameterize them since they contain the same assertions for different inputs (yaml or dict).
@kenodegard kenodegard added the source::anaconda created by members of Anaconda, Inc. label Jan 13, 2023
@kenodegard kenodegard self-assigned this Jan 13, 2023
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 13, 2023
@kenodegard kenodegard requested a review from sven6002 January 17, 2023 22:32
@kenodegard kenodegard merged commit d73b58e into conda:main Jan 18, 2023
@kenodegard kenodegard deleted the speedup-test_get_package_variants_phase2 branch January 18, 2023 22:03
@beeankha beeankha added in-progress issue is actively being worked on and removed in-progress issue is actively being worked on labels Jan 19, 2023
beeankha added a commit to beeankha/conda-build that referenced this pull request Jan 19, 2023
beeankha added a commit to beeankha/conda-build that referenced this pull request Jan 19, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jan 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants