From 5a5d99f89927117cfd4be4f8a6f087ac692283e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 7 Jan 2023 14:32:31 +0100 Subject: [PATCH] chore(tests): use "actual-expected" order in assertions --- tests/vcs/test_vcs.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/vcs/test_vcs.py b/tests/vcs/test_vcs.py index 938076c26..d9ddb0019 100644 --- a/tests/vcs/test_vcs.py +++ b/tests/vcs/test_vcs.py @@ -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( @@ -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: