9
9
from tests .utils .constants import ZERO_ADDRESS
10
10
11
11
12
- @pytest .fixture (scope = "session " )
12
+ @pytest .fixture (scope = "module " )
13
13
def swap_impl (admin ):
14
14
with boa .env .prank (admin ):
15
15
return STABLESWAP_DEPLOYER .deploy ()
16
16
17
17
18
- @pytest .fixture (scope = "session " )
18
+ @pytest .fixture (scope = "module " )
19
19
def swap_deployer (swap_impl , admin ):
20
20
with boa .env .prank (admin ):
21
21
deployer = SWAP_FACTORY_DEPLOYER .deploy (swap_impl .address )
22
22
return deployer
23
23
24
24
25
- @pytest .fixture (scope = "session " )
25
+ @pytest .fixture (scope = "module " )
26
26
def redeemable_coin (admin ):
27
27
with boa .env .prank (admin ):
28
28
return ERC20_MOCK_DEPLOYER .deploy (6 )
29
29
30
30
31
- @pytest .fixture (scope = "session " )
31
+ @pytest .fixture (scope = "module " )
32
32
def volatile_coin (admin ):
33
33
with boa .env .prank (admin ):
34
34
return ERC20_MOCK_DEPLOYER .deploy (18 )
35
35
36
36
37
- @pytest .fixture (scope = "session " )
37
+ @pytest .fixture (scope = "module " )
38
38
def swap (swap_deployer , swap_impl , redeemable_coin , volatile_coin , admin ):
39
39
with boa .env .prank (admin ):
40
40
n = swap_deployer .n ()
@@ -47,7 +47,7 @@ def swap(swap_deployer, swap_impl, redeemable_coin, volatile_coin, admin):
47
47
return swap
48
48
49
49
50
- @pytest .fixture (scope = "session " )
50
+ @pytest .fixture (scope = "module " )
51
51
def swap_w_d (swap , redeemable_coin , volatile_coin , accounts , admin ):
52
52
with boa .env .prank (admin ):
53
53
boa .deal (redeemable_coin , admin , 10 ** 6 * 10 ** 6 )
0 commit comments