data.gov
data.gov copied to clipboard
Fix integration tests in harvesting logic repo
all integration tests for harvesting logic repo on main should pass out-of-the-box
How to reproduce
- pull down main
- run integration tests via
poetry run pytest --ignore=./tests/unit --ignore=./tests/database
Expected behavior
all integration tests pass
Actual behavior
some integration tests fail
Sketch
- update documentation to enable successful run of tests ( if needed )
- resolve test issues
on the topic of integration tests, we may want to have another discussion on what we consider an integration test ( i.e. a test of multiple parts of an application acting together vs. a unit test that actually interacts with a service ). the repo should make sense to the team and not be confusing.
two of the tests ( retrieving a task and cancelling a task ) are failing
it seems that getting a task by name
isn't reliable. Using the guid
cf assigns the task works.