Skip to content

Commit 1a5f414

Browse files
committed
fix: use sys for imports
1 parent 2eeec62 commit 1a5f414

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

tests/test_editor_project.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from scratchattach import editor
1+
import sys
22

3-
def test_1():
4-
project = editor.Project.from_id(1209355136)
3+
def test_import():
4+
sys.path.insert(0, ".")
5+
from scratchattach import editor
6+
proj = editor.Project.from_id(104)

tests/test_project.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import sys
2+
13
def test_get():
4+
sys.path.insert(0, ".")
25
import scratchattach as sa
36
project = sa.get_project(1209355136)
47

0 commit comments

Comments
 (0)