Skip to content

Commit 2b6da8a

Browse files
committed
fix: use dynamic path in TestMainBlock for CI compatibility
1 parent 7378f0d commit 2b6da8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ def test_main_block_success(self):
12841284
capture_output=True,
12851285
text=True,
12861286
env=env,
1287-
cwd="/Users/sergio/repos/personal/Telegram-Archive",
1287+
cwd=os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
12881288
timeout=10,
12891289
)
12901290
self.assertEqual(result.returncode, 0)
@@ -1303,7 +1303,7 @@ def test_main_block_config_error(self):
13031303
capture_output=True,
13041304
text=True,
13051305
env=env,
1306-
cwd="/Users/sergio/repos/personal/Telegram-Archive",
1306+
cwd=os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
13071307
timeout=10,
13081308
)
13091309
self.assertIn("Configuration error", result.stdout)

0 commit comments

Comments
 (0)