fhirfly / fhirpower

FHIR Power creates Sentences from FHIR Resources or a Bundle of FHIR Resources to power Machine Learning Models, Vector Searches, and Big Data Analytics
MIT License
10 stars 2 forks source link

Unittest fails #2

Open pietervosnl opened 8 months ago

pietervosnl commented 8 months ago

====================================================================== FAIL: test_flatten_simple_resource (main.TestFlattenFHIR.test_flatten_simple_resource)

Traceback (most recent call last): File "c:\repos\fhirpower\test\fhirpower_test.py", line 21, in test_flatten_simple_resource self.assertDictEqual(flattened_dict, expected_output) AssertionError: '[resourceType]Patient[name][given]John[name][family]Doe' is not an instance of <class 'dict'> : Second argument is not a dictionary

s0sasaki commented 7 months ago

This is because the expected output is not a dictionary. I fixed the test case!