Skip to content

Commit

Permalink
Added more test
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwinCode committed Jan 22, 2024
1 parent 7aa1fed commit 2515dbd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_ellar_commands/test_create_project_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ def test_create_project_fails_for_py_project_none(cli_runner):
assert result.output == "Error: No pyproject.toml file found.\n"


def test_create_project_without_py_project(cli_runner):
result = cli_runner.invoke_ellar_command(
["create-project", "testing_new_project", "--plain"]
)
assert result.exit_code == 0
assert (
result.output
== "`testing_new_project` project scaffold completed.\nHappy coding!\n"
)


def test_create_project_fails_for_existing_project_name(
cli_runner, write_empty_py_project, tmpdir
):
Expand Down

0 comments on commit 2515dbd

Please sign in to comment.