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
3b3791d3
Commit
3b3791d3
authored
Oct 10, 2020
by
Etty
Committed by
finswimmer
Oct 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test
parent
2db820d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tests/console/commands/test_config.py
+11
-0
No files found.
tests/console/commands/test_config.py
View file @
3b3791d3
...
@@ -4,6 +4,7 @@ import os
...
@@ -4,6 +4,7 @@ import os
import
pytest
import
pytest
from
poetry.config.config_source
import
ConfigSource
from
poetry.config.config_source
import
ConfigSource
from
poetry.core.pyproject
import
PyProjectException
from
poetry.factory
import
Factory
from
poetry.factory
import
Factory
...
@@ -12,6 +13,16 @@ def tester(command_tester_factory):
...
@@ -12,6 +13,16 @@ def tester(command_tester_factory):
return
command_tester_factory
(
"config"
)
return
command_tester_factory
(
"config"
)
def
test_show_config_with_local_config_file_empty
(
tester
,
mocker
):
mocker
.
patch
(
"poetry.factory.Factory.create_poetry"
,
side_effect
=
PyProjectException
(
"[tool.poetry] section not found"
),
)
tester
.
execute
()
assert
""
==
tester
.
io
.
fetch_output
()
def
test_list_displays_default_value_if_not_set
(
tester
,
config
):
def
test_list_displays_default_value_if_not_set
(
tester
,
config
):
tester
.
execute
(
"--list"
)
tester
.
execute
(
"--list"
)
...
...
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