forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
self install: in this context the project is not a package so we shou…
…ld set package-mode
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
import pytest | ||
|
||
|
||
if TYPE_CHECKING: | ||
from cleo.testers.command_tester import CommandTester | ||
|
||
from tests.types import CommandTesterFactory | ||
|
||
|
||
@pytest.fixture | ||
def tester(command_tester_factory: CommandTesterFactory) -> CommandTester: | ||
return command_tester_factory("self install") | ||
|
||
|
||
def test_self_install( | ||
tester: CommandTester, | ||
) -> None: | ||
tester.execute() | ||
|
||
expected_output = """\ | ||
Updating dependencies | ||
Resolving dependencies... | ||
Writing lock file | ||
""" | ||
|
||
assert tester.io.fetch_output() == expected_output | ||
assert tester.io.fetch_error() == "" |