Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 4, 2024
1 parent 89abca6 commit b3311fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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

0 comments on commit b3311fd

Please sign in to comment.