Skip to content

Commit

Permalink
Update test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zavoraad authored Jan 11, 2024
1 parent 6aed6c1 commit 6f039b6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
TEST_BUNDLE_PATH = "./sampledata/*json"
TEST_DATABASE = f"test_{REPO}_{BRANCH}"

@pytest.fixture
def get_entries_inline_json_df(spark_session):
return FhirBundles(path=TEST_BUNDLE_PATH).loadEntries()

@pytest.fixture
def get_entries_df(spark_session):
return FhirBundles(path=TEST_BUNDLE_PATH).loadEntries()
Expand All @@ -42,15 +38,6 @@ def test_entries_to_person(self,get_entries_df) -> None:
person_df = entries_to_person(get_entries_df)
assert person_df.count() == 3
assert_schema_equality(person_df.schema, PERSON_SCHEMA, ignore_nullable=True)

def test_entries_inline_json(self, spark_session):
fhir=FhirBundles(defaultResource=FhirBundles().asInlineJsonSingleton, path="./sampledata/inline_records/")
assert fhir.loadEntries().count() == 29
import json
x = json.loads(fhir.loadEntries().take(1)[0]['entry_json'])
assert x['resourceType']=='Patient'
assert x['gender']=='male'
assert x['birthDate'] =='1963-06-09'

def test_entries_to_condition(self, get_entries_df) -> None:
condition_df = entries_to_condition(get_entries_df)
Expand Down

0 comments on commit 6f039b6

Please sign in to comment.