Commit d26ee38c authored by Gregory Harris's avatar Gregory Harris
Browse files

Fixing minor issue with parsing of WellboreRecord to JSON.

parent e7cd37b1
Pipeline #72331 passed with stage
in 3 minutes and 39 seconds
......@@ -189,7 +189,7 @@ class WellBoreService:
logger.warning(f"New wellbore IDs: {ids}")
wellbore_id = self._safe_get_first_record(ids)
logger.info(json.dumps(self._client.get_wellbore_record(wellbore_id), indent=4, sort_keys=True))
logger.info(json.dumps(self._client.get_wellbore_record(wellbore_id).get_raw_data(), indent=4, sort_keys=True))
welllog_record = mapper.map_to_well_log_record(wellbore_id)
......
......@@ -220,7 +220,7 @@ class TestWellBoreService:
mock_well_log_service = Mock(spec=WellLogService)
mock_mapper = Mock(spec=LasToRecordMapper)
well_bore_record = Record("well_bore_kind", {}, {}, {})
well_bore_record = WellboreRecord({"Kind": "well_bore_kind", "acl": {}, "legal": {}, "data": {}})
well_log_record = Record("well_log_kind", {}, {}, {})
well_log_record_recognized = Record("well_log_rec_kind", {"blah": "blah"}, {}, {})
well_log_record_returned = WellLogRecord({"kind": "returned_welllog_record"})
......@@ -235,7 +235,7 @@ class TestWellBoreService:
mock_mapper.extract_log_data.return_value = well_log_data
mock_client.create_wellbore.return_value = well_bore_ids
mock_client.get_wellbore_record.return_value = vars(well_log_record)
mock_client.get_wellbore_record.return_value = well_bore_record
mock_client.create_welllog.return_value = well_log_ids
mock_client.get_welllog_record.return_value = well_log_record_returned
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment