Skip to content

Commit 10c70ea

Browse files
Typer made help in case of missing args print to stdout again so we follow in our tests.
1 parent 383be6e commit 10c70ea

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

tests/test_cli_django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_main_subcommand_without_args_prints_help():
3939
[],
4040
)
4141
assert result.exit_code == 2
42-
assert "Show this message and exit." in result.stderr
42+
assert "Show this message and exit." in result.stdout
4343

4444

4545
def test_autoconfigure_calls_all_stuff_in_right_order(mock_django_project):

tests/test_cli_pa.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def test_main_command_without_args_prints_help():
1515
[],
1616
)
1717
assert result.exit_code == 2
18-
assert "This is a new experimental PythonAnywhere cli client." in result.stderr
19-
assert "Makes Django Girls tutorial projects deployment easy" in result.stderr
20-
assert "Perform some operations on files" in result.stderr
21-
assert "Manage scheduled tasks" in result.stderr
22-
assert "Perform some operations on students" in result.stderr
23-
assert "Everything for web apps: use this if you're not using" in result.stderr
24-
assert "EXPERIMENTAL: create and manage ASGI websites" in result.stderr
18+
assert "This is a new experimental PythonAnywhere cli client." in result.stdout
19+
assert "Makes Django Girls tutorial projects deployment easy" in result.stdout
20+
assert "Perform some operations on files" in result.stdout
21+
assert "Manage scheduled tasks" in result.stdout
22+
assert "Perform some operations on students" in result.stdout
23+
assert "Everything for web apps: use this if you're not using" in result.stdout
24+
assert "EXPERIMENTAL: create and manage ASGI websites" in result.stdout

tests/test_cli_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_main_subcommand_without_args_prints_help():
4747
[],
4848
)
4949
assert result.exit_code == 2
50-
assert "Show this message and exit." in result.stderr
50+
assert "Show this message and exit." in result.stdout
5151

5252

5353
class TestGet:

tests/test_cli_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_main_subcommand_without_args_prints_help():
4646
[],
4747
)
4848
assert result.exit_code == 2
49-
assert "Show this message and exit." in result.stderr
49+
assert "Show this message and exit." in result.stdout
5050

5151

5252
class TestSet:

tests/test_cli_students.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_main_subcommand_without_args_prints_help():
2828
[],
2929
)
3030
assert result.exit_code == 2
31-
assert "Show this message and exit." in result.stderr
31+
assert "Show this message and exit." in result.stdout
3232

3333

3434
@pytest.mark.students

tests/test_cli_webapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_main_subcommand_without_args_prints_help():
4545
[],
4646
)
4747
assert result.exit_code == 2
48-
assert "Show this message and exit." in result.stderr
48+
assert "Show this message and exit." in result.stdout
4949

5050

5151
def test_list_webapps(mocker):

tests/test_cli_website.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_main_subcommand_without_args_prints_help():
6767
[],
6868
)
6969
assert result.exit_code == 2
70-
assert "Show this message and exit." in result.stderr
70+
assert "Show this message and exit." in result.stdout
7171

7272

7373
def test_create_without_domain_barfs():

0 commit comments

Comments
 (0)