Skip to content

Commit 18ce144

Browse files
authored
chore: fix yoda conditions (#793)
1 parent cc87b3e commit 18ce144

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/masonry/test_api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ def test_prepare_metadata_for_build_wheel(project: str) -> None:
198198
assert (dist_info / "METADATA").exists()
199199

200200
with (dist_info / "entry_points.txt").open(encoding="utf-8") as f:
201-
assert entry_points == f.read()
201+
assert f.read() == entry_points
202202

203203
with (dist_info / "WHEEL").open(encoding="utf-8") as f:
204-
assert wheel_data == f.read()
204+
assert f.read() == wheel_data
205205

206206
with (dist_info / "METADATA").open(encoding="utf-8") as f:
207-
assert metadata == f.read()
207+
assert f.read() == metadata
208208

209209

210210
def test_prepare_metadata_for_build_wheel_with_bad_path_dev_dep_succeeds() -> None:
@@ -240,7 +240,7 @@ def test_build_editable_wheel(project: str) -> None:
240240
namelist = z.namelist()
241241

242242
assert "my_package.pth" in namelist
243-
assert pkg_dir.as_posix() == z.read("my_package.pth").decode().strip()
243+
assert z.read("my_package.pth").decode().strip() == pkg_dir.as_posix()
244244

245245

246246
@pytest.mark.parametrize("project", ["complete", "complete_new"])
@@ -299,5 +299,5 @@ def test_build_editable_wheel_with_metadata_directory(project: str) -> None:
299299
namelist = z.namelist()
300300

301301
assert "my_package.pth" in namelist
302-
assert pkg_dir.as_posix() == z.read("my_package.pth").decode().strip()
302+
assert z.read("my_package.pth").decode().strip() == pkg_dir.as_posix()
303303
assert f"{metadata_directory}/CUSTOM" in namelist

0 commit comments

Comments
 (0)