Skip to content

Commit

Permalink
appease codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Nov 6, 2023
1 parent ce5d5a6 commit 8f6d69a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions imap_processing/ialirt/tests/unit/test_decom_ialirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ def empty_binary_packet_path():
binary_file_path, "wb"
) as binary_file:
for line in text_file:
if not line.startswith("#"):
# Split the line by semicolons
# Discard the first value since it is only a counter
hex_values = line.strip().split(";")[1:]
# Convert hex to binary
binary_data = bytearray.fromhex("".join(hex_values))
binary_file.write(binary_data)
# Split the line by semicolons
# Discard the first value since it is only a counter
hex_values = line.strip().split(";")[1:]
# Convert hex to binary
binary_data = bytearray.fromhex("".join(hex_values))
binary_file.write(binary_data)

yield binary_file_path

Expand Down

0 comments on commit 8f6d69a

Please sign in to comment.