Skip to content

Commit

Permalink
Update tests/console/commands/test_init.py
Browse files Browse the repository at this point in the history
Co-authored-by: Arun Babu Neelicattu <[email protected]>
  • Loading branch information
finswimmer and abn authored Sep 28, 2020
1 parent cddbcad commit 56bc7f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/console/commands/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56bc7f5

Please sign in to comment.