Skip to content

Commit 5ba86be

Browse files
committed
fix(test): correct import path and S1 chunk test assertions
- Fix sys.path in test_publish_amqp.py from parent.parent to parent.parent.parent - Update S1 spatial_chunk test expectations from 2048 to 4096 - Aligns with code changes in get_conversion_params.py
1 parent d93e220 commit 5ba86be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/test_get_conversion_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_s1_parameters(self):
6666
params = get_conversion_params("sentinel-1-l1-grd")
6767
assert params["groups"] == "/measurements"
6868
assert params["extra_flags"] == "--gcp-group /conditions/gcp"
69-
assert params["spatial_chunk"] == 2048
69+
assert params["spatial_chunk"] == 4096
7070
assert params["tile_width"] == 512
7171

7272
def test_s2_with_suffix_uses_same_config(self):
@@ -109,7 +109,7 @@ def test_shell_format_s1(self, capsys):
109109
captured = capsys.readouterr()
110110
assert "ZARR_GROUPS='/measurements'" in captured.out
111111
assert "EXTRA_FLAGS='--gcp-group /conditions/gcp'" in captured.out
112-
assert "CHUNK=2048" in captured.out
112+
assert "CHUNK=4096" in captured.out
113113

114114
def test_json_format(self, capsys):
115115
"""JSON output format."""

tests/unit/test_publish_amqp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pika.exceptions
1010
import pytest
1111

12-
sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))
12+
sys.path.insert(0, str(Path(__file__).parent.parent.parent / "scripts"))
1313
from publish_amqp import format_routing_key, load_payload
1414

1515

0 commit comments

Comments
 (0)