Skip to content

Commit

Permalink
Fix the error in test_verify_json_payloads for bufr files
Browse files Browse the repository at this point in the history
  • Loading branch information
shamlymajeed committed Mar 27, 2024
1 parent 3402949 commit 2421c18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ingest/test/test_verify_json_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ def test_verify_json_payload_bufr(bufr_file_path):
init_oscar_py("./src/ingest/bufr/oscar/oscar_stations_all.json")
init_bufr_schema_py("./src/ingest/schemas/bufr_to_e_soh_message.json")
msg_build = IngestToPipeline(None, "testing", testing=True)
with open(bufr_file_path, "rb") as file:
bufr_content = file.read()

json_payloads = msg_build._build_messages(bufr_file_path, input_type="bufr")
json_payloads = msg_build._build_messages(bufr_content, input_type="bufr")

for payload in json_payloads:
try:
Expand Down

1 comment on commit 2421c18

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API Unit Test Coverage Report
FileStmtsMissCoverMissing
\_\_init\_\_.py00100% 
datastore_pb2.py584621%24–69
datastore_pb2_grpc.py432347%37–52, 85–87, 92–94, 99–101, 106–108, 112–136, 174, 191, 208, 225
grpc_getter.py201145%15–16, 20–23, 27–29, 33–35
locustfile.py15150%1–31
main.py34585%41, 51–52, 62–63
metadata_endpoints.py552555%42–51, 55, 72–151, 155
utilities.py683154%33, 40, 62–65, 73–80, 85–92, 104–123
custom_geo_json
   edr_feature_collection.py60100% 
formatters
   \_\_init\_\_.py110100% 
   covjson.py50198%73
   geojson.py15193%42
routers
   \_\_init\_\_.py00100% 
   edr.py972673%59–134, 214–215, 259–260
   feature.py451958%70–103, 113–118, 124–146
TOTAL51720361% 

API Unit Test Coverage Summary

Tests Skipped Failures Errors Time
17 0 💤 0 ❌ 0 🔥 2.158s ⏱️

Please sign in to comment.