Skip to content

Commit

Permalink
chore(tests): use "actual-expected" order in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Jan 7, 2023
1 parent 55ffd33 commit 13cadc1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/vcs/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
],
)
def test_normalize_url(url: str, normalized: GitUrl) -> None:
assert normalized == Git.normalize_url(url)
assert Git.normalize_url(url) == normalized


@pytest.mark.parametrize(
Expand Down Expand Up @@ -396,14 +396,14 @@ def test_normalize_url(url: str, normalized: GitUrl) -> None:
)
def test_parse_url(url: str, parsed: ParsedUrl) -> None:
result = ParsedUrl.parse(url)
assert parsed.name == result.name
assert parsed.pathname == result.pathname
assert parsed.port == result.port
assert parsed.protocol == result.protocol
assert parsed.resource == result.resource
assert parsed.rev == result.rev
assert parsed.url == result.url
assert parsed.user == result.user
assert result.name == parsed.name
assert result.pathname == parsed.pathname
assert result.port == parsed.port
assert result.protocol == parsed.protocol
assert result.resource == parsed.resource
assert result.rev == parsed.rev
assert result.url == parsed.url
assert result.user == parsed.user


def test_parse_url_should_fail() -> None:
Expand Down

0 comments on commit 13cadc1

Please sign in to comment.