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
19c472aa
Commit
19c472aa
authored
Nov 27, 2021
by
Arun Babu Neelicattu
Committed by
Bjorn Neergaard
Nov 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix incorrect test for new project w/ readme
parent
c6e82a1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tests/console/commands/test_new.py
+7
-4
No files found.
tests/console/commands/test_new.py
View file @
19c472aa
...
@@ -157,15 +157,18 @@ def test_command_new(
...
@@ -157,15 +157,18 @@ def test_command_new(
verify_project_directory
(
path
,
package_name
,
package_path
,
include_from
)
verify_project_directory
(
path
,
package_name
,
package_path
,
include_from
)
@pytest.mark.parametrize
(
"fmt"
,
[(
None
,),
(
"md"
,),
(
"rst"
,)])
@pytest.mark.parametrize
(
(
"fmt"
,)
,
[(
None
,),
(
"md"
,),
(
"rst"
,)])
def
test_command_new_with_readme
(
def
test_command_new_with_readme
(
fmt
:
Optional
[
str
],
tester
:
"CommandTester"
,
tmp_dir
:
str
fmt
:
Optional
[
str
],
tester
:
"CommandTester"
,
tmp_dir
:
str
):
):
fmt
=
"md"
package
=
"package"
package
=
"package"
path
=
Path
(
tmp_dir
)
/
package
path
=
Path
(
tmp_dir
)
/
package
options
=
[
f
"--readme {fmt}"
if
fmt
else
"md"
,
path
.
as_posix
()]
options
=
[
path
.
as_posix
()]
if
fmt
:
options
.
insert
(
0
,
f
"--readme {fmt}"
)
tester
.
execute
(
" "
.
join
(
options
))
tester
.
execute
(
" "
.
join
(
options
))
poetry
=
verify_project_directory
(
path
,
package
,
package
,
None
)
poetry
=
verify_project_directory
(
path
,
package
,
package
,
None
)
assert
poetry
.
local_config
.
get
(
"readme"
)
==
"README.{}"
.
format
(
fmt
or
"md"
)
assert
poetry
.
local_config
.
get
(
"readme"
)
==
f
"README.{fmt or 'md'}"
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