Skip to content

Commit

Permalink
Expand "editable" tests, exposing a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jul 18, 2024
1 parent 55946c8 commit eb4bbcb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_end2end.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ def test_editable_mode(cmd: list[str], tmp_path: Path) -> None:
assert get_repo_status(srcdir) == status
info = readcmd(sys.executable, "-m", "pip", "show", "mypackage")
assert parse_version_from_metadata(info) == details.version
version_var = readcmd(
sys.executable, "-c", "import mypackage; print(mypackage.__version__)"
)
assert version_var == "NOT SET"
for f in details.files:
f.check(srcdir, "project")
finally:
Expand All @@ -425,6 +429,10 @@ def test_editable_mode_hatch(tmp_path: Path) -> None:
assert get_repo_status(srcdir) == status
info = readcmd(sys.executable, "-m", "pip", "show", "mypackage")
assert parse_version_from_metadata(info) == details.version
version_var = readcmd(
sys.executable, "-c", "import mypackage; print(mypackage.__version__)"
)
assert version_var == "NOT SET"
for f in details.files:
f.check(srcdir, "project")
finally:
Expand Down

0 comments on commit eb4bbcb

Please sign in to comment.