Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Testing guide
Once you've made some changes to the codebase, it is important to run tests.
Ingestion tests
Ensure you've gone through the quickstart guide. Ensure that the Docker daemon is running.
Install the Python dependencies, including dev-dependencies.
ov just ingestion_server/installRun the integration tests.
ov just ingestion_server/test-local
Making general test requests
To make cURL requests to the local server:
ov just ingestion_server/curl-post '{"model": <model>, "action": <action>}'
Replace <model> and <action> with the correct values. For example, to
download and index all new images, <model> will be "image" and <action>
will be "INGEST_UPSTREAM".