def test_CRUD_fhir_store(test_dataset, capsys): fhir_stores.create_fhir_store( service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.get_fhir_store( service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.list_fhir_stores( service_account_json, project_id, cloud_region, dataset_id) fhir_stores.delete_fhir_store( service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert 'Created FHIR store' in out assert 'Name' in out assert 'fhirStores' in out assert 'Deleted FHIR store' in out
def test_crud_fhir_store(test_dataset, capsys): fhir_stores.create_fhir_store(project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.get_fhir_store(project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.list_fhir_stores(project_id, cloud_region, dataset_id) fhir_stores.delete_fhir_store(project_id, cloud_region, dataset_id, fhir_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert "Created FHIR store" in out assert "name" in out assert "fhirStores" in out assert "Deleted FHIR store" in out
def test_CRUD_fhir_store(test_dataset, capsys): fhir_stores.create_fhir_store(service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.get_fhir_store(service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) fhir_stores.list_fhir_stores(service_account_json, project_id, cloud_region, dataset_id) fhir_stores.delete_fhir_store(service_account_json, project_id, cloud_region, dataset_id, fhir_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert 'Created FHIR store' in out assert 'Name' in out assert 'fhirStores' in out assert 'Deleted FHIR store' in out
def _get(): fhir_stores.get_fhir_store(project_id, cloud_region, dataset_id, fhir_store_id)
def _get(): fhir_stores.get_fhir_store(project_id, location, dataset_id, fhir_store_id)