-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer actual-expected to expected-actual in assertions (#277)
- Loading branch information
Showing
5 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,15 @@ def test_to_pep_508(): | |
|
||
expected = "poetry @ git+https://github.com/python-poetry/poetry.git" | ||
|
||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
|
||
def test_to_pep_508_ssh(): | ||
dependency = VCSDependency("poetry", "git", "[email protected]:sdispater/poetry.git") | ||
|
||
expected = "poetry @ git+ssh://[email protected]/sdispater/poetry.git" | ||
|
||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
|
||
def test_to_pep_508_with_extras(): | ||
|
@@ -30,7 +30,7 @@ def test_to_pep_508_with_extras(): | |
|
||
expected = "poetry[foo] @ git+https://github.com/python-poetry/poetry.git" | ||
|
||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
|
||
def test_to_pep_508_in_extras(): | ||
|
@@ -42,7 +42,7 @@ def test_to_pep_508_in_extras(): | |
expected = ( | ||
'poetry @ git+https://github.com/python-poetry/poetry.git ; extra == "foo"' | ||
) | ||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
dependency = VCSDependency( | ||
"poetry", "git", "https://github.com/python-poetry/poetry.git", extras=["bar"] | ||
|
@@ -53,7 +53,7 @@ def test_to_pep_508_in_extras(): | |
'poetry[bar] @ git+https://github.com/python-poetry/poetry.git ; extra == "foo"' | ||
) | ||
|
||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
dependency = VCSDependency( | ||
"poetry", "git", "https://github.com/python-poetry/poetry.git", "b;ar;" | ||
|
@@ -65,7 +65,7 @@ def test_to_pep_508_in_extras(): | |
' "foo;"' | ||
) | ||
|
||
assert expected == dependency.to_pep_508() | ||
assert dependency.to_pep_508() == expected | ||
|
||
|
||
@pytest.mark.parametrize("groups", [["main"], ["dev"]]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters