test_the_export_api_is_public

Tests › tests/test_export.py

passed Passed in the packaged run.

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

  1. for name in ("export_dossier", "export_search", "WIRE_VERSION", "EXPORT_CORPORA"): assert name in q.__all__, name
→

When

  1. —
→

Then

  1. ✓ set(q.EXPORT_CORPORA) equals set(CORPORA)

tests/test_export.py:93 · its file's page

What it checks (2)

  1. assert name in q.__all__, name not attributed
  2. assert 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)

requirementlinked byimplementers exercised
REQ-DDB-QUERY-014catalogunknown