test_the_export_api_is_public¶
Tests › tests/test_export.py
What this test is for
Why it exists
THE SURFACE IS THE PROMISE. semver covers what `clew.query` re-exports, so the export must be reachable from there — a function a consumer has to import from a submodule is an internal by this repository's own definition.
Verifies REQ-DDB-QUERY-014
Given
for name in ("export_dossier", "export_search", "WIRE_VERSION", "EXPORT_CORPORA"): assert name in q.__all__, name
When
- —
Then
- ✓ set(q.EXPORT_CORPORA) equals set(CORPORA)
tests/test_export.py:93 · its file's page
What it checks (2)
assert name in q.__all__, namenot attributedassert set(q.EXPORT_CORPORA) == set(CORPORA)not attributed
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-QUERY-014 | catalog | unknown |