コード例 #1
0
def test_patch_fhir_store(test_dataset, test_fhir_store, capsys):
    fhir_stores.patch_fhir_store(project_id, cloud_region, dataset_id,
                                 fhir_store_id)

    out, _ = capsys.readouterr()

    assert "Patched FHIR store" in out
コード例 #2
0
def test_patch_fhir_store(test_dataset, capsys):
    fhir_stores.create_fhir_store(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    fhir_stores.patch_fhir_store(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

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

    out, _ = capsys.readouterr()

    assert 'Patched FHIR store' in out
コード例 #3
0
def test_patch_fhir_store(test_dataset, capsys):
    fhir_stores.create_fhir_store(
        service_account_json,
        api_key,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id)

    fhir_stores.patch_fhir_store(
        service_account_json,
        api_key,
        project_id,
        cloud_region,
        dataset_id,
        fhir_store_id,
        pubsub_topic)

    # 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 'Patched FHIR store' in out