build(deps): bump pydantic from 2.10.2 to 2.10.4 #322
GitHub Actions / Test Results (3.11)
failed
Jan 1, 2025 in 1s
5 passed, 2 failed and 0 skipped
❌ test-results.xml
7 tests were completed in 16s with 5 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 5✅ | 2❌ | 16s |
❌ pytest
tests.test_main
✅ test_app_says_hello
✅ test_process_with_valid_config_does_not_error
✅ test_process_with_binary_hk_converts_to_csv
❌ test_fetch_binary_downloads_hk_from_webpoda
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
❌ test_fetch_science_downloads_cdf_from_sdc
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
✅ test_calibration_creates_calibration_file
✅ test_application_creates_L2_file
Annotations
Check failure on line 0 in test-results.xml
github-actions / Test Results (3.11)
pytest ► tests.test_main ► test_fetch_binary_downloads_hk_from_webpoda
Failed test found in:
test-results.xml
Error:
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
Raw output
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
@pytest.mark.skipif(
os.getenv("GITHUB_ACTIONS") and os.getenv("RUNNER_OS") == "Windows",
reason="Wiremock test containers will not work on Windows Github Runner",
)
def test_fetch_binary_downloads_hk_from_webpoda(wiremock_manager): # noqa: F811
# Set up.
binary_file = os.path.abspath("tests/data/2025/MAG_HSK_PW.pkts")
wiremock_manager.add_file_mapping(
"/packets/SID2/MAG_HSK_PW.bin?time%3E=2025-05-02T00:00:00&time%3C2025-05-03T00:00:00&project(packet)",
binary_file,
)
(_, config_file) = create_serialize_config(
destination_file="power.pkts", webpoda_url=wiremock_manager.get_url()
)
# Exercise.
result = runner.invoke(
app,
[
"--verbose",
"fetch-binary",
"--config",
config_file,
"--apid",
"1063",
"--start-date",
"2025-05-02",
"--end-date",
"2025-05-03",
],
)
print("\n" + str(result.stdout))
# Verify.
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_main.py:121: AssertionError
Check failure on line 0 in test-results.xml
github-actions / Test Results (3.11)
pytest ► tests.test_main ► test_fetch_science_downloads_cdf_from_sdc
Failed test found in:
test-results.xml
Error:
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
Raw output
wiremock_manager = <tests.wiremockUtils.WireMockManager object at 0x7f4d8e3d3bd0>
@pytest.mark.skipif(
os.getenv("GITHUB_ACTIONS") and os.getenv("RUNNER_OS") == "Windows",
reason="Wiremock test containers will not work on Windows Github Runner",
)
def test_fetch_science_downloads_cdf_from_sdc(wiremock_manager): # noqa: F811
# Set up.
query_response: list[dict[str, str]] = [
{
"file_path": "imap/mag/l1b/2025/05/imap_mag_l1b_norm-magi_20250502_v000.cdf",
"instrument": "mag",
"data_level": "l1b",
"descriptor": "norm-magi",
"start_date": "20250502",
"repointing": None,
"version": "v000",
"extension": "cdf",
"ingestion_date": "2024-07-16 10:29:02",
}
]
cdf_file = os.path.abspath(
"tests/data/2025/imap_mag_l1b_norm-mago_20250502_v000.cdf"
)
wiremock_manager.add_string_mapping(
"/query?instrument=mag&data_level=l1b&descriptor=norm-magi&start_date=20250502&version=latest&extension=cdf",
json.dumps(query_response),
priority=1,
)
wiremock_manager.add_file_mapping(
"/download/imap/mag/l1b/2025/05/imap_mag_l1b_norm-magi_20250502_v000.cdf",
cdf_file,
)
wiremock_manager.add_string_mapping(
re.escape("/query?instrument=mag&data_level=l1b&descriptor=")
+ ".*"
+ re.escape("&start_date=20250502&version=latest&extension=cdf"),
json.dumps({}),
is_pattern=True,
priority=2,
)
(_, config_file) = create_serialize_config(
destination_file="result.cdf", sdc_url=wiremock_manager.get_url().rstrip("/")
)
# Exercise.
result = runner.invoke(
app,
[
"--verbose",
"fetch-science",
"--config",
config_file,
"--auth-code",
"12345",
"--level",
"l1b",
"--start-date",
"2025-05-02",
"--end-date",
"2025-05-02",
],
)
print("\n" + str(result.stdout))
# Verify.
> assert result.exit_code == 0
E AssertionError: assert 1 == 0
E + where 1 = <Result IMAPDataAccessError('HTTP Error: 404 - Not Found\nServer Message: \n ...------------------------------------------------------------------------------------------------------------------\n')>.exit_code
tests/test_main.py:198: AssertionError
Loading