Skip to content

Commit

Permalink
fix: Allow passing FakeSession to PoetrySession
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Feb 13, 2021
1 parent cf8ca18 commit ae4ea7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def __init__(self, path: Path) -> None:
"""Initialize."""
self.path = path

@property
def _session(self) -> "FakeSession":
"""Allow passing this instance to PoetrySession."""
return self

def run(self, *args: str, **kargs: Any) -> str:
"""Run."""
path = Path("dist") / "example.whl"
Expand Down

0 comments on commit ae4ea7c

Please sign in to comment.