[Investigate] Update caas-aspace-scripts for Automatic Testing Data R… #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…etrieval/Use #58
Description
Letting this PR serve as a starting point for discussion on how to handle testing at a larger scale. What I'm proposing here is, at a high level:
vcrpy
to record API responses from external systems (aka ASpace) and store those recordings in this repoWhat this workflow would look like moving forward is as follows.
Some opinionated choices I've made here that are worth pointing out:
test/vcr_utils.py
sets our initial vcr configurations, including:test/fixtures/vcr_cassettes/{script_file_name}/{test_class_name}.yaml
test-requirements.txt
that'll hold just test-related dependencies (at present, only vcr)test
directory from thetests
directory in order to get unittest to successfully discover the teststest_*
, again, so that unittest can autodiscover itLikely follow on tasks (should we deem this the path forward we'd like to pursue):
Related GitHub Issue
#58
Testing
See tests in CI
Checklist