Skip to content

Commit b367f53

Browse files
committed
TST: Move test structure to a single test directory
This moves from /instrument/tests to /tests/instrument
1 parent c8516fe commit b367f53

File tree

84 files changed

+44
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+44
-44
lines changed

imap_processing/idex/idex_packet_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PacketParser:
4646
--------
4747
>>> # Print out the data in a L0 file
4848
>>> from imap_processing.idex.idex_packet_parser import PacketParser
49-
>>> l0_file = "imap_processing/idex/tests/imap_idex_l0_20230725_v01-00.pkts"
49+
>>> l0_file = "imap_processing/tests/idex/imap_idex_l0_20230725_v01-00.pkts"
5050
>>> l1_data = PacketParser(l0_file)
5151
>>> l1_data.write_l1_cdf()
5252

imap_processing/codice/tests/test_codice_l0.py renamed to imap_processing/tests/codice/test_codice_l0.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def decom_test_data() -> list:
2424
"""
2525

2626
packet_file = Path(
27-
f"{imap_module_directory}/codice/tests/data/"
27+
f"{imap_module_directory}/tests/codice/data/"
2828
f"raw_ccsds_20230822_122700Z_idle.bin"
2929
)
3030
Path(f"{imap_module_directory}/codice/packet_definitions/P_COD_NHK.xml")
@@ -51,7 +51,7 @@ def validation_data() -> pd.core.frame.DataFrame:
5151

5252
# Read in the CSV file
5353
validation_file = Path(
54-
f"{imap_module_directory}/codice/tests/data/"
54+
f"{imap_module_directory}/tests/codice/data/"
5555
f"idle_export_raw.COD_NHK_20230822_122700.csv"
5656
)
5757
validation_data = pd.read_csv(validation_file, index_col="SHCOARSE")
@@ -79,7 +79,7 @@ def test_eu_hk_data(
7979
l1a_hk_ds = create_dataset(decom_test_data)
8080
eu_hk_data = convert_raw_to_eu(
8181
l1a_hk_ds,
82-
imap_module_directory / "codice/tests/data/eu_unit_lookup_table.csv",
82+
imap_module_directory / "tests/codice/data/eu_unit_lookup_table.csv",
8383
"P_COD_NHK",
8484
)
8585
first_data = decom_test_data[0]

imap_processing/codice/tests/test_codice_l1a.py renamed to imap_processing/tests/codice/test_codice_l1a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def l0_test_data() -> list:
2121
"""
2222

2323
packet_file = Path(
24-
f"{imap_module_directory}/codice/tests/data/"
24+
f"{imap_module_directory}/tests/codice/data/"
2525
f"raw_ccsds_20230822_122700Z_idle.bin"
2626
)
2727
packets = decom_packets(packet_file)

0 commit comments

Comments
 (0)