diff --git a/requirements.txt b/requirements.txt index a97efc6..75306f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,7 @@ responses==0.25.8 schema==0.7.2 snakesay==0.10.4 tabulate==0.9.0 -typer==0.18.0 +typer==0.20.0 urllib3==2.5.0 virtualenvwrapper==6.1.1 zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability diff --git a/tests/test_cli_django.py b/tests/test_cli_django.py index 360fbfe..3e8a9a2 100644 --- a/tests/test_cli_django.py +++ b/tests/test_cli_django.py @@ -39,7 +39,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout def test_autoconfigure_calls_all_stuff_in_right_order(mock_django_project): diff --git a/tests/test_cli_pa.py b/tests/test_cli_pa.py index 2f4c0db..09e973f 100644 --- a/tests/test_cli_pa.py +++ b/tests/test_cli_pa.py @@ -15,10 +15,10 @@ def test_main_command_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "This is a new experimental PythonAnywhere cli client." in result.stderr - assert "Makes Django Girls tutorial projects deployment easy" in result.stderr - assert "Perform some operations on files" in result.stderr - assert "Manage scheduled tasks" in result.stderr - assert "Perform some operations on students" in result.stderr - assert "Everything for web apps: use this if you're not using" in result.stderr - assert "EXPERIMENTAL: create and manage ASGI websites" in result.stderr + assert "This is a new experimental PythonAnywhere cli client." in result.stdout + assert "Makes Django Girls tutorial projects deployment easy" in result.stdout + assert "Perform some operations on files" in result.stdout + assert "Manage scheduled tasks" in result.stdout + assert "Perform some operations on students" in result.stdout + assert "Everything for web apps: use this if you're not using" in result.stdout + assert "EXPERIMENTAL: create and manage ASGI websites" in result.stdout diff --git a/tests/test_cli_path.py b/tests/test_cli_path.py index 1d721e6..3acfc5f 100644 --- a/tests/test_cli_path.py +++ b/tests/test_cli_path.py @@ -47,7 +47,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout class TestGet: diff --git a/tests/test_cli_schedule.py b/tests/test_cli_schedule.py index 42fb9e4..b35757a 100644 --- a/tests/test_cli_schedule.py +++ b/tests/test_cli_schedule.py @@ -46,7 +46,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout class TestSet: diff --git a/tests/test_cli_students.py b/tests/test_cli_students.py index 5295b07..c80b86e 100644 --- a/tests/test_cli_students.py +++ b/tests/test_cli_students.py @@ -28,7 +28,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout @pytest.mark.students diff --git a/tests/test_cli_webapp.py b/tests/test_cli_webapp.py index 97cc566..8737fa9 100644 --- a/tests/test_cli_webapp.py +++ b/tests/test_cli_webapp.py @@ -45,7 +45,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout def test_list_webapps(mocker): diff --git a/tests/test_cli_website.py b/tests/test_cli_website.py index 39832b6..d59e48b 100644 --- a/tests/test_cli_website.py +++ b/tests/test_cli_website.py @@ -67,7 +67,7 @@ def test_main_subcommand_without_args_prints_help(): [], ) assert result.exit_code == 2 - assert "Show this message and exit." in result.stderr + assert "Show this message and exit." in result.stdout def test_create_without_domain_barfs():