Closed claalmve closed 4 weeks ago
Instructions for testing unit tests, because it's not listed (if this is wrong @claalmve please correct me):
pip install pytest
(if not already present -- should be)pytest tests/vulnerability/test_vulnerability.py
I had to install the following packages for this test: boto3
, IPython
, timezonefinder
Upon running:
test_export_no_e
: AssertionError: The file should be created.
Also need to install h5netcdf
Also need to install
h5netcdf
The testing environment uses the conda-lock
file, not the env.yml
. h5netcdf
is installed in that environment (hopefully).
The tests might be failing because of a version issue. Not all packages are exactly the same as on the HUB and we might be running into an incompatibility.
This is still failing for me @claalmve. On test_metric_agg it looks like
1 failed, 3 passed, 10 warnings
Alright, all 4 tests are passing on the hub! Failing locally (but I am also on a Mac OS)
Description of PR
Summary of changes and related issue We want to have test coverage for
cava_data
and its respective helper functions. This PR creates tests for the helper functions ofcava_data
. A future PR will provide full test coverage overcava_data
as well.Relevant motivation and context We want full test coverage so that when something breaks, we know about it.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
tests/vulnerability/test_vulnerability.py
Checklist: