FHIR out from the catalog, the FHIR door, ConceptMap routes; round-trip, new-label and Synthea gates
This commit is contained in:
@@ -10,6 +10,8 @@ from pathlib import Path
|
||||
import pytest
|
||||
from test_conectar import ok, run
|
||||
|
||||
from conftest import put_concept_map
|
||||
|
||||
ROOT = Path(__file__).parents[2]
|
||||
HOSPITAL = ROOT / "tests" / "fixtures" / "hospital"
|
||||
PIPELINE = ROOT / "tests" / "fixtures" / "pipelines" / "hospital_cacu.json"
|
||||
@@ -19,8 +21,10 @@ PIPELINE = ROOT / "tests" / "fixtures" / "pipelines" / "hospital_cacu.json"
|
||||
@pytest.mark.parametrize("platform", ["sqlite"], indirect=True) # pages read one API either way
|
||||
def test_every_page_loads_from_the_api(api, platform, messy_site):
|
||||
hospital = json.loads(PIPELINE.read_text().replace("{hospital}", str(HOSPITAL)))
|
||||
put_concept_map(api, "hospital_cacu")
|
||||
ok(api.put("/ingest/pipelines/cacu", json=hospital))
|
||||
run(api, "cacu")
|
||||
put_concept_map(api, "messy_site")
|
||||
ok(api.put("/ingest/pipelines/site", json=json.loads(messy_site.drawn)))
|
||||
run(api, "site")
|
||||
subprocess.run(["npx", "playwright", "test"], cwd=ROOT / "WebApp", check=True,
|
||||
|
||||
Reference in New Issue
Block a user