mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
966c58d808
commit
289ddab5f7
@ -15,3 +15,7 @@ assert test2.a.g.get_value() == '123'
|
|||||||
|
|
||||||
from test2.utils import get_value_2
|
from test2.utils import get_value_2
|
||||||
assert get_value_2() == '123'
|
assert get_value_2() == '123'
|
||||||
|
|
||||||
|
from test3.a.b import value
|
||||||
|
# should test3
|
||||||
|
assert value == 1
|
@ -1,3 +1 @@
|
|||||||
ok = True
|
|
||||||
|
|
||||||
from ..b import D
|
from ..b import D
|
@ -1,3 +1,5 @@
|
|||||||
|
ok = True
|
||||||
|
|
||||||
from ...utils import r
|
from ...utils import r
|
||||||
|
|
||||||
def get_value():
|
def get_value():
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
value = '123'
|
value = '123'
|
||||||
|
|
||||||
from test2.a import g
|
from test2.a import g
|
||||||
assert g.ok == True
|
assert g.ok
|
||||||
|
3
tests/test3/__init__.py
Normal file
3
tests/test3/__init__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
raise ValueError(
|
||||||
|
"test3 should not be imported"
|
||||||
|
)
|
3
tests/test3/a/__init__.py
Normal file
3
tests/test3/a/__init__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
raise ValueError(
|
||||||
|
"test3.a should not be imported"
|
||||||
|
)
|
1
tests/test3/a/b.py
Normal file
1
tests/test3/a/b.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
value = 1
|
Loading…
x
Reference in New Issue
Block a user