Skip to content

Commit

Permalink
test: Add functional test for path dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Mar 14, 2021
1 parent f5257b2 commit c1319d8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/functional/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,20 @@ def test(session: nox_poetry.Session) -> None:
packages = list_packages(project, test)

assert set(expected) == set(packages)


def test_install_with_path_dependency(datadir: Path) -> None:
"""It installs the package."""
project = Project(datadir / "path-dependency")

@nox_poetry.session
def test(session: nox_poetry.Session) -> None:
"""Install the local package."""
session.install(".")

run_nox_with_noxfile(project, [test], [nox_poetry])

expected = [project.package, *project.dependencies]
packages = list_packages(project, test)

assert set(expected) == set(packages)

0 comments on commit c1319d8

Please sign in to comment.