-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved pytest fixture that returns test data to conftest.py
- Loading branch information
Showing
3 changed files
with
22 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
import xarray as xr | ||
|
||
from imap_processing import imap_module_directory | ||
from imap_processing.idex.l1.idex_l1 import PacketParser | ||
|
||
|
||
@pytest.fixture() | ||
def decom_test_data() -> xr.Dataset: | ||
"""Return a ``xarray`` dataset containing test data. | ||
Returns | ||
------- | ||
dataset : xarray.Dataset | ||
A ``xarray`` dataset containing the test data | ||
""" | ||
test_file = Path( | ||
f"{imap_module_directory}/tests/idex/imap_idex_l0_raw_20230725_v001.pkts" | ||
) | ||
return PacketParser(test_file, "001").data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters