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 1616import apify ._actor
1717from apify import Actor
1818from apify ._actor import _ActorType
19- from apify ._configuration import Configuration
2019
2120
2221async def test_actor_properly_init_with_async () -> None :
@@ -36,13 +35,6 @@ async def test_actor_init() -> None:
3635 assert my_actor ._is_initialized is False
3736
3837
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-
4638async def test_double_init_raises_error (prepare_test_env : Callable ) -> None :
4739 async with Actor :
4840 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:
1010
1111 async with Actor (config ) as actor :
1212 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