Skip to content

Commit

Permalink
Utilize the new Symlink in preparing the test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 18, 2023
1 parent c701bcd commit d5f723f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from . import fixtures
from ._context import suppress
from ._path import Symlink
from importlib_metadata import (
Distribution,
EntryPoint,
Expand Down Expand Up @@ -419,14 +420,10 @@ def main():
print("hello world")
""",
},
# "symlinked" -> ".symlink.target", see below
"symlinked": Symlink(".symlink.target"),
}

fixtures.build_files(files, self.site_dir)
target = self.site_dir / ".symlink.target"
assert target.is_dir()
(self.site_dir / "symlinked").symlink_to(target, target_is_directory=True)

assert packages_distributions()['symlinked'] == ['symlinked-pkg']


Expand Down

0 comments on commit d5f723f

Please sign in to comment.