Skip to content

Commit 7b4cdc0

Browse files
committed
test: make parse environment assertions portable
1 parent 4ce20d5 commit 7b4cdc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_provider_sidecar_uses_configurable_deckflow_home(self) -> None:
199199
env = parse_cmd._environ(cloud=False)
200200
self.assertEqual(
201201
env["DECKFLOW_EXTRACT_HOME"],
202-
"/tmp/deckflow-test-home/parse",
202+
str(Path("/tmp/deckflow-test-home") / "parse"),
203203
)
204204

205205
def test_cloud_secrets_are_kept_only_for_explicit_cloud_mode(self) -> None:
@@ -215,7 +215,7 @@ def test_cloud_secrets_are_kept_only_for_explicit_cloud_mode(self) -> None:
215215
env = parse_cmd._environ(cloud=True)
216216
self.assertIn("DECKFLOW_API_KEY", env)
217217
self.assertNotIn("DECKFLOW_NO_STORED_CREDENTIALS", env)
218-
self.assertEqual(env["DECKFLOW_CONFIG_DIR"], "/tmp/deckflow-home")
218+
self.assertEqual(env["DECKFLOW_CONFIG_DIR"], str(Path("/tmp/deckflow-home")))
219219

220220

221221
class StatusAndSanitizationTest(unittest.TestCase):

0 commit comments

Comments
 (0)