Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duarte-pompeu committed Dec 4, 2023
1 parent 9b1b4af commit a2d9365
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_get_existing_value(cli, dotenv_path):
def test_get_non_existent_value(cli, dotenv_path):
result = cli.invoke(dotenv_cli, ['--file', dotenv_path, 'get', 'a'])

assert (result.exit_code, result.output) == (1, "Key a not found.\n")
assert (result.exit_code, result.output) == (1, "Key a not found in {}.\n".format(dotenv_path))


def test_get_non_existent_file(cli):
Expand All @@ -89,8 +89,9 @@ def test_unset_existing_value(cli, dotenv_path):
dotenv_path.write_text("a=b")

result = cli.invoke(dotenv_cli, ['--file', dotenv_path, 'unset', 'a'])
print(result.output)

assert (result.exit_code, result.output) == (0, "Successfully removed a\n")
assert (result.exit_code, result.output) == (0, "Successfully removed a from {}.\n".format(dotenv_path))
assert dotenv_path.read_text() == ""


Expand Down

0 comments on commit a2d9365

Please sign in to comment.