コード例 #1
0
def test_export_fhir_store_gcs(test_dataset, capsys):
    fhir_stores.create_fhir_store(
        service_account_json,
        api_key,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    fhir_stores.export_fhir_store_gcs(
        service_account_json,
        api_key,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id,
        gcs_uri)

    # Clean up
    fhir_stores.delete_fhir_store(
        service_account_json,
        api_key,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    out, _ = capsys.readouterr()

    assert 'Exported FHIR resources to bucket' in out
コード例 #2
0
def test_export_fhir_store_gcs(test_dataset, capsys):
    fhir_stores.create_fhir_store(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    fhir_stores.export_fhir_store_gcs(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id,
        gcs_uri)

    # Clean up
    fhir_stores.delete_fhir_store(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    out, _ = capsys.readouterr()

    assert 'Exported FHIR resources to bucket' in out
コード例 #3
0
def test_export_fhir_store_gcs(test_dataset, test_fhir_store, capsys):
    fhir_stores.export_fhir_store_gcs(
        project_id, cloud_region, dataset_id, fhir_store_id, gcs_uri,
    )

    out, _ = capsys.readouterr()

    assert "Exported FHIR resources to bucket" in out