Open dhruvkb opened 3 years ago
Can be related with WordPress/openverse-api#181 to make the examples work as test cases.
@dhruvkb Is https://github.com/WordPress/openverse/issues/725 a duplicate of this issue?
@zackkrida is this still high priority?
Priority has been downgraded to low.
While working on #3931, I had to update the sample data to include the new audio provider with a different shape of the alt_files
(some fields, such as bit_rate
, were absent). I replaced the last 10 items, and the integration tests that, as it turned out, rely on them started failing. Updating sample data CSV is not easy, and it would be nice to create the public data programmatically. Provided that we know all of the data inconsistencies or have normalized all of them already.
I wonder if something like Schemathesis exists for synthetic data creation.
Problem
The API integration tests used by the CI workflow use the sample data. This makes them tightly coupled and causes problems when updating the sample data to match changes in models.
Description
The integration tests should use QA indices
search-qa-images
andsearch-qa-audio
that are created programmatically.Alternatives
Implementation