File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 16
16
import apify ._actor
17
17
from apify import Actor
18
18
from apify ._actor import _ActorType
19
- from apify ._configuration import Configuration
20
19
21
20
22
21
async def test_actor_properly_init_with_async () -> None :
@@ -36,13 +35,6 @@ async def test_actor_init() -> None:
36
35
assert my_actor ._is_initialized is False
37
36
38
37
39
- async def test_actor_global_works () -> None :
40
- non_default_configuration = Configuration (actor_full_name = 'Actor McActorson, esq.' )
41
-
42
- async with Actor (configuration = non_default_configuration ):
43
- assert Actor .configuration is non_default_configuration
44
-
45
-
46
38
async def test_double_init_raises_error (prepare_test_env : Callable ) -> None :
47
39
async with Actor :
48
40
assert Actor ._is_initialized
Original file line number Diff line number Diff line change @@ -10,3 +10,10 @@ async def test_actor_with_non_default_config() -> None:
10
10
11
11
async with Actor (config ) as actor :
12
12
assert actor .config .internal_timeout == timedelta (minutes = 111 )
13
+
14
+
15
+ async def test_actor_global_works () -> None :
16
+ non_default_configuration = Configuration (actor_full_name = 'Actor McActorson, esq.' )
17
+
18
+ async with Actor (configuration = non_default_configuration ):
19
+ assert Actor .configuration is non_default_configuration
You can’t perform that action at this time.
0 commit comments