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

test__hybrid_formulae.py nose discovery #4450

Merged

Conversation

wjbenfold
Copy link
Contributor

🚀 Pull Request

Description

Fixes #4431 which highlights that the method used to construct some tests in iris/tests/unit/fileformats/nc_load_rules/actions/test__hybrid_formulae.py wasn't allowing them to be picked up by nose. I've expanded the short method that was being used to make the tests into a repetitive setup that should be picked up by nose, hopefully exactly replicating the previous tests.


Consult Iris pull request check list

@wjbenfold wjbenfold requested a review from rcomer December 6, 2021 09:37
@wjbenfold wjbenfold force-pushed the wjbenfold-test-hybrid-formulae-discovery branch from f06b527 to 76fae75 Compare December 6, 2021 09:40
@rcomer rcomer self-assigned this Dec 6, 2021
Copy link
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @wjbenfold!

Confirmed that the CI is now finding 5977 tests, whereas the last commit to main only found 5970.

I have convinced myself that the new tests are equivalent to the generated ones, and that each of the new tests is checking a different hybrid_type.

LGTM

@rcomer rcomer merged commit a28f9b1 into SciTools:main Dec 6, 2021
@rcomer
Copy link
Member

rcomer commented Dec 6, 2021

Oh, it should probably have a whatsnew though!

@wjbenfold wjbenfold mentioned this pull request Dec 6, 2021
tkknight added a commit to tkknight/iris that referenced this pull request Dec 7, 2021
* main:
  [pre-commit.ci] pre-commit autoupdate (SciTools#4452)
  Whatsnew (SciTools#4451)
  Explicitly define tests so nose can find them (SciTools#4450)
  Updated environment lockfiles (SciTools#4449)
  Update CI environment lockfiles (SciTools#4424)
  Disable GHA workflows on non-SciTools branches (SciTools#4444)
  Add new contributor to whatsnew (SciTools#4443)
  Use dask-core instead of dask in ci (SciTools#4434)
  Mesh recombine (SciTools#4437)
  Mesh full comparison (SciTools#4439)
  Only try to work out the differences between points for multiple (SciTools#4367)
  [pre-commit.ci] pre-commit autoupdate (SciTools#4430)
  Fix license PyPI classifier (SciTools#4435)
  Whatsnew for PR SciTools#4367 (SciTools#4440)
@wjbenfold wjbenfold deleted the wjbenfold-test-hybrid-formulae-discovery branch December 14, 2021 16:09
tkknight added a commit to tkknight/iris that referenced this pull request Dec 14, 2021
* upstream/main: (78 commits)
  Updated environment lockfiles (SciTools#4458)
  remove asv package dependency (SciTools#4456)
  cube.aggregated_by output bounds (SciTools#4315)
  [pre-commit.ci] pre-commit autoupdate (SciTools#4452)
  Whatsnew (SciTools#4451)
  Explicitly define tests so nose can find them (SciTools#4450)
  Updated environment lockfiles (SciTools#4449)
  Update CI environment lockfiles (SciTools#4424)
  Disable GHA workflows on non-SciTools branches (SciTools#4444)
  Add new contributor to whatsnew (SciTools#4443)
  Use dask-core instead of dask in ci (SciTools#4434)
  Mesh recombine (SciTools#4437)
  Mesh full comparison (SciTools#4439)
  Only try to work out the differences between points for multiple (SciTools#4367)
  [pre-commit.ci] pre-commit autoupdate (SciTools#4430)
  Fix license PyPI classifier (SciTools#4435)
  Whatsnew for PR SciTools#4367 (SciTools#4440)
  Suggest type hinting (SciTools#4390)
  area weight regrid test fixes (SciTools#4432)
  Update latest.rst (SciTools#4425)
  ...
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

Successfully merging this pull request may close these issues.

nose missing some tests
2 participants