Skip to content

Commit 6b6b34b

Browse files
committed
fix test
1 parent de6e082 commit 6b6b34b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

tests/data_resource/cm.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ def resource_cm():
1313
def resource_nested_class():
1414
with scope_class(resource_cm) as value:
1515
yield value
16-

tests/data_resource/resource_nested.py

+10-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111
@lymbo.test()
1212
def scope_nested_hierarchy():
1313
with scope_global(resource_cm):
14-
with scope_module(resource_cm):
15-
with scope_class(resource_cm):
16-
with scope_function(resource_cm):
17-
print("ok", end="")
14+
with scope_global(resource_cm):
15+
with scope_module(resource_cm):
16+
with scope_module(resource_cm):
17+
with scope_class(resource_cm):
18+
with scope_class(resource_cm):
19+
with scope_function(resource_cm):
20+
with scope_function(resource_cm):
21+
print("ok", end="")
1822

1923

2024
@lymbo.test()
@@ -77,11 +81,10 @@ def scope_nested_shared_resource_1(self):
7781
def scope_nested_shared_resource_2(self):
7882

7983
with scope_class(resource_cm) as value:
80-
print('{"scope": "nested", "value": "' + str(value) + '"}')
81-
84+
print('{"scope": "nested", "value": "' + str(value) + '"}')
8285

8386
@lymbo.test()
8487
def scope_nested_shared_resource_3(self):
8588

8689
with resource_nested_class() as value:
87-
print('{"scope": "nested", "value": "' + str(value) + '"}')
90+
print('{"scope": "nested", "value": "' + str(value) + '"}')

0 commit comments

Comments
 (0)