1818 create_program ,
1919 forget ,
2020)
21- from aleph_client .chains .common import get_fallback_private_key
21+ from aleph_client .chains .common import get_fallback_private_key , delete_private_key_file
2222from aleph_client .chains .ethereum import ETHAccount
2323from aleph_client .conf import settings
2424from aleph_client .types import StorageEnum , MessageStatus
@@ -45,7 +45,7 @@ async def test_create_post():
4545 _get_fallback_session .cache_clear ()
4646
4747 if os .path .exists (settings .PRIVATE_KEY_FILE ):
48- os . remove ( settings . PRIVATE_KEY_FILE )
48+ delete_private_key_file ( )
4949
5050 private_key = get_fallback_private_key ()
5151 account : ETHAccount = ETHAccount (private_key = private_key )
@@ -74,7 +74,7 @@ async def test_create_aggregate():
7474 _get_fallback_session .cache_clear ()
7575
7676 if os .path .exists (settings .PRIVATE_KEY_FILE ):
77- os . remove ( settings . PRIVATE_KEY_FILE )
77+ delete_private_key_file ( )
7878
7979 private_key = get_fallback_private_key ()
8080 account : ETHAccount = ETHAccount (private_key = private_key )
@@ -109,7 +109,7 @@ async def test_create_store():
109109 _get_fallback_session .cache_clear ()
110110
111111 if os .path .exists (settings .PRIVATE_KEY_FILE ):
112- os . remove ( settings . PRIVATE_KEY_FILE )
112+ delete_private_key_file ( )
113113
114114 private_key = get_fallback_private_key ()
115115 account : ETHAccount = ETHAccount (private_key = private_key )
@@ -162,7 +162,7 @@ async def test_create_program():
162162 _get_fallback_session .cache_clear ()
163163
164164 if os .path .exists (settings .PRIVATE_KEY_FILE ):
165- os . remove ( settings . PRIVATE_KEY_FILE )
165+ delete_private_key_file ( )
166166
167167 private_key = get_fallback_private_key ()
168168 account : ETHAccount = ETHAccount (private_key = private_key )
@@ -188,7 +188,7 @@ async def test_forget():
188188 _get_fallback_session .cache_clear ()
189189
190190 if os .path .exists (settings .PRIVATE_KEY_FILE ):
191- os . remove ( settings . PRIVATE_KEY_FILE )
191+ delete_private_key_file ( )
192192
193193 private_key = get_fallback_private_key ()
194194 account : ETHAccount = ETHAccount (private_key = private_key )
0 commit comments