Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
a2853187
Unverified
Commit
a2853187
authored
Sep 23, 2022
by
David Bordeynik
Committed by
GitHub
Sep 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add coverage for `install --dry-run` (#6601)
parent
80d906b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/console/commands/test_install.py
+12
-0
No files found.
tests/console/commands/test_install.py
View file @
a2853187
...
@@ -183,3 +183,15 @@ def test_extras_conlicts_all_extras(tester: CommandTester, mocker: MockerFixture
...
@@ -183,3 +183,15 @@ def test_extras_conlicts_all_extras(tester: CommandTester, mocker: MockerFixture
==
"You cannot specify explicit `--extras` while installing using"
==
"You cannot specify explicit `--extras` while installing using"
" `--all-extras`.
\n
"
" `--all-extras`.
\n
"
)
)
def
test_dry_run_populates_installer
(
tester
:
CommandTester
,
mocker
:
MockerFixture
):
"""
The --dry-run option results in extras passed to the installer.
"""
mocker
.
patch
.
object
(
tester
.
command
.
installer
,
"run"
,
return_value
=
1
)
tester
.
execute
(
"--dry-run"
)
assert
tester
.
command
.
installer
.
_dry_run
is
True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment