diff --git a/tests/console/commands/test_init.py b/tests/console/commands/test_init.py index 73d0a7d8628..b57811401a0 100644 --- a/tests/console/commands/test_init.py +++ b/tests/console/commands/test_init.py @@ -558,9 +558,8 @@ def test_predefined_and_interactive_dev_dependencies(tester, repo): assert 'pytest = "^3.6.0"' in output -def test_add_package_with_extras_and_whitespace(app): - command = app.find("init") - result = command._parse_requirements(["databases[postgresql, sqlite]"]) +def test_add_package_with_extras_and_whitespace(tester): + result = tester._parse_requirements(["databases[postgresql, sqlite]"]) assert result[0]["name"] == "databases" assert len(result[0]["extras"]) == 2