From b3311fda918f98783c11d83c81afd2b9cdfa9039 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Thu, 4 Jul 2024 15:36:40 -0500 Subject: [PATCH] test: fix --- tests/conftest.py | 4 ++-- tests/test_accounts.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 7cba3b6..a5770af 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -11,8 +11,8 @@ @pytest.fixture(scope="session", autouse=True) def config(): - with ape.config.isolate_date_folder(): - yield config + with ape.config.isolate_data_folder(): + yield ape.config @pytest.fixture(scope="session", autouse=True) diff --git a/tests/test_accounts.py b/tests/test_accounts.py index 6b0b71b..a74f80f 100644 --- a/tests/test_accounts.py +++ b/tests/test_accounts.py @@ -10,7 +10,7 @@ def eip191_message(): def test_import(cli, runner, test_account, container, non_existing_alias): result = runner.invoke( - cli, ["keyring", "accounts", "import", non_existing_alias], input=test_account.private_key + cli, ("keyring", "accounts", "import", non_existing_alias), input=test_account.private_key ) assert not result.exit_code, result.output assert "SUCCESS" in result.output @@ -19,7 +19,7 @@ def test_import(cli, runner, test_account, container, non_existing_alias): def test_list(cli, runner, keyring_account, existing_alias): - result = runner.invoke(cli, ["keyring", "accounts", "list"]) + result = runner.invoke(cli, ("keyring", "accounts", "list")) assert result.exit_code == 0, result.output assert existing_alias in result.output @@ -47,10 +47,10 @@ def test_set_autosign(keyring_account, eip191_message, runner): def test_delete(cli, runner, keyring_account): - result = runner.invoke(cli, ["keyring", "accounts", "delete", keyring_account.alias]) + result = runner.invoke(cli, ("keyring", "accounts", "delete", keyring_account.alias)) assert "SUCCESS" in result.output assert f"Account '{keyring_account.alias}' removed from keying" in result.output # Verify account is NOT listed in 'list' command - result = runner.invoke(cli, ["keyring", "accounts", "list"]) + result = runner.invoke(cli, ("keyring", "accounts", "list")) assert keyring_account.alias not in result.output