Skip to content

Commit 9c0fa3b

Browse files
committed
fix: add project root to sys.path for CI import resolution
1 parent ad12176 commit 9c0fa3b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/compatibility/test_conftest_helpers.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import io
2+
import os
3+
import sys
24

3-
from tests.compatibility.conftest import _build_devcloud_cmd
5+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
6+
7+
from tests.compatibility.conftest import _build_devcloud_cmd, _start_server_error
48

59

610
class TestBuildDevcloudCmd:
@@ -71,8 +75,6 @@ def wait(self):
7175

7276
import pytest
7377

74-
from tests.compatibility.conftest import _start_server_error
75-
7678
with pytest.raises(RuntimeError) as exc_info:
7779
_start_server_error(["go", "run", "./cmd/devcloud"], "/tmp/project", {})
7880

0 commit comments

Comments
 (0)