Skip to content

Commit

Permalink
update cli tests to use babelize sample-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 12, 2024
1 parent 25e1d4d commit 34e99ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_defaults():

def test_generate_help():
runner = CliRunner()
result = runner.invoke(babelize, ["generate", "--help"])
result = runner.invoke(babelize, ["sample-config", "--help"])
assert result.exit_code == 0
assert "Usage:" in result.output

Expand All @@ -57,13 +57,13 @@ def test_update_help():

def test_generate_noargs():
runner = CliRunner()
result = runner.invoke(babelize, ["generate"])
result = runner.invoke(babelize, ["sample-config"])
assert result.exit_code == 0


def test_generate_gives_valid_toml():
runner = CliRunner()
result = runner.invoke(babelize, ["generate"])
result = runner.invoke(babelize, ["sample-config"])
assert result.exit_code == 0

config = tomllib.loads(result.output)
Expand Down

0 comments on commit 34e99ba

Please sign in to comment.