Skip to content

Commit

Permalink
tests: compliance_checker: use a different .nc file
Browse files Browse the repository at this point in the history
Use `compliance_checker/tests/data/bad-trajectory.nc` as a test
file; in contrast to previously used `trajectory.nc`, the
`bad-trajectory.nc` is part of `compliance-checker`'s git
repository, and is available in 5.1.0 wheel.
  • Loading branch information
rokm committed May 23, 2023
1 parent 85cb92f commit 8fd32a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cftime==1.6.2
charset_normalizer==3.1.0
cloudscraper==1.2.71
# compliance-checker requires cf-units, so same constraints apply.
compliance-checker==5.0.2; sys_platform != 'win32' and python_version >= '3.8'
compliance-checker==5.1.0; sys_platform != 'win32' and python_version >= '3.8'
dash==2.9.3
dash-bootstrap-components==1.4.1
dash-uploader==0.6.0
Expand Down
2 changes: 1 addition & 1 deletion src/_pyinstaller_hooks_contrib/tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ def test_compliance_checker(pyi_builder):
# The test file - taken from the package's own test data/examples. Use an .nc file instead of .cdl one, because
# loading the latter requires ncgen utility to be available on the system.
pkg_path = get_module_attribute('compliance_checker', '__path__')[0]
input_file = Path(pkg_path) / 'tests/data/trajectory.nc'
input_file = Path(pkg_path) / 'tests/data/bad-trajectory.nc'
assert input_file.is_file(), f"Selected test file, {input_file!s} does not exist! Fix the test!"

pyi_builder.test_source("""
Expand Down

0 comments on commit 8fd32a5

Please sign in to comment.