Skip to content

Commit 7292f74

Browse files
committed
stopped asserting stdout
1 parent da7ad25 commit 7292f74

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/test_build_typers.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,13 @@ def test_help_command(cli_runner):
5858
os.chdir(sample_app_path)
5959
result = subprocess.run(["ellar", "--help"], stdout=subprocess.PIPE)
6060
assert result.returncode == 0
61-
assert (
62-
result.stdout
63-
== b"Usage: Ellar, Python Web framework [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n -p, --project TEXT Run Specific Command on a specific project\n --install-completion Install completion for the current shell.\n --show-completion Show completion for the current shell, to copy it or\n customize the installation.\n --help Show this message and exit.\n\nCommands:\n create-module - Scaffolds Ellar Application Module -\n create-project - Scaffolds Ellar Application -\n db\n new - Runs a complete Ellar project scaffold and creates...\n runserver - Starts Uvicorn Server -\n say-hi\n whatever-you-want Whatever you want\n"
64-
)
61+
6562
result = subprocess.run(
6663
["ellar", "-p", "example_project", "--help"], stdout=subprocess.PIPE
6764
)
6865
assert result.returncode == 0
69-
assert (
70-
result.stdout
71-
== b"Usage: Ellar, Python Web framework [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n -p, --project TEXT Run Specific Command on a specific project\n --install-completion Install completion for the current shell.\n --show-completion Show completion for the current shell, to copy it or\n customize the installation.\n --help Show this message and exit.\n\nCommands:\n create-module - Scaffolds Ellar Application Module -\n create-project - Scaffolds Ellar Application -\n db\n new - Runs a complete Ellar project scaffold and creates...\n runserver - Starts Uvicorn Server -\n say-hi\n whatever-you-want Whatever you want\n"
72-
)
7366

7467
result = subprocess.run(
7568
["ellar", "-p", "example_project_2", "--help"], stdout=subprocess.PIPE
7669
)
7770
assert result.returncode == 0
78-
assert (
79-
result.stdout
80-
== b"Usage: Ellar, Python Web framework [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n -p, --project TEXT Run Specific Command on a specific project\n --install-completion Install completion for the current shell.\n --show-completion Show completion for the current shell, to copy it or\n customize the installation.\n --help Show this message and exit.\n\nCommands:\n create-module - Scaffolds Ellar Application Module -\n create-project - Scaffolds Ellar Application -\n db\n new - Runs a complete Ellar project scaffold and creates...\n project-2-command Project 2 Custom Command\n runserver - Starts Uvicorn Server -\n say-hi\n whatever-you-want Whatever you want\n"
81-
)

0 commit comments

Comments
 (0)