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
e5638dff
Unverified
Commit
e5638dff
authored
Jun 25, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Normalize command ouput in tests
parent
5fd64978
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
tests/console/commands/test_about.py
+1
-1
tests/console/commands/test_add.py
+10
-10
tests/console/commands/test_check.py
+1
-1
tests/console/commands/test_init.py
+2
-2
tests/console/commands/test_show.py
+8
-8
No files found.
tests/console/commands/test_about.py
View file @
e5638dff
...
...
@@ -15,4 +15,4 @@ See https://github.com/sdispater/poetry for more information.
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
tests/console/commands/test_add.py
View file @
e5638dff
...
...
@@ -29,7 +29,7 @@ Writing lock file
- Installing cachy (0.2.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
1
...
...
@@ -61,7 +61,7 @@ Writing lock file
- Installing cachy (0.1.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
1
...
...
@@ -94,7 +94,7 @@ Writing lock file
- Installing cachy (0.2.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -127,7 +127,7 @@ Writing lock file
- Installing demo (0.1.2 9cf87a2)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -167,7 +167,7 @@ Writing lock file
- Installing demo (0.1.2 9cf87a2)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -200,7 +200,7 @@ Writing lock file
- Installing demo (0.1.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -240,7 +240,7 @@ Writing lock file
- Installing demo (0.1.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -287,7 +287,7 @@ Writing lock file
- Installing cachy (0.2.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
2
...
...
@@ -330,7 +330,7 @@ Writing lock file
- Installing cachy (0.2.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
1
...
...
@@ -371,7 +371,7 @@ Writing lock file
- Installing cachy (0.2.0)
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
assert
len
(
installer
.
installs
)
==
1
...
...
tests/console/commands/test_check.py
View file @
e5638dff
...
...
@@ -11,4 +11,4 @@ def test_about(app):
All set!
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
tests/console/commands/test_init.py
View file @
e5638dff
...
...
@@ -42,7 +42,7 @@ def test_basic_interactive(app, mocker, poetry):
)
tester
.
execute
([(
"command"
,
command
.
name
)])
output
=
tester
.
get_display
()
output
=
tester
.
get_display
(
True
)
expected
=
"""
\
[tool.poetry]
name = "my-package"
...
...
@@ -91,7 +91,7 @@ def test_interactive_with_dependencies(app, repo, mocker, poetry):
)
tester
.
execute
([(
"command"
,
command
.
name
)])
output
=
tester
.
get_display
()
output
=
tester
.
get_display
(
True
)
expected
=
"""
\
[tool.poetry]
name = "my-package"
...
...
tests/console/commands/test_show.py
View file @
e5638dff
...
...
@@ -55,7 +55,7 @@ cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_basic_with_not_installed_packages_non_decorated
(
app
,
poetry
,
installed
):
...
...
@@ -109,7 +109,7 @@ cachy 0.1.0 Cachy package
pendulum (!) 2.0.0 Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_basic_with_not_installed_packages_decorated
(
app
,
poetry
,
installed
):
...
...
@@ -163,7 +163,7 @@ def test_show_basic_with_not_installed_packages_decorated(app, poetry, installed
\033
[31mpendulum
\033
[0m
\033
[36m2.0.0
\033
[0m Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_latest_non_decorated
(
app
,
poetry
,
installed
,
repo
):
...
...
@@ -228,7 +228,7 @@ cachy 0.1.0 0.2.0 Cachy package
pendulum 2.0.0 2.0.1 Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_latest_decorated
(
app
,
poetry
,
installed
,
repo
):
...
...
@@ -295,7 +295,7 @@ def test_show_latest_decorated(app, poetry, installed, repo):
\033
[32mpendulum
\033
[0m
\033
[36m2.0.0
\033
[0m
\033
[31m2.0.1
\033
[0m Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_outdated
(
app
,
poetry
,
installed
,
repo
):
...
...
@@ -356,7 +356,7 @@ def test_show_outdated(app, poetry, installed, repo):
cachy 0.1.0 0.2.0 Cachy package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_hides_incompatible_package
(
app
,
poetry
,
installed
,
repo
):
...
...
@@ -411,7 +411,7 @@ def test_show_hides_incompatible_package(app, poetry, installed, repo):
pendulum 2.0.0 Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
def
test_show_all_shows_incompatible_package
(
app
,
poetry
,
installed
,
repo
):
...
...
@@ -467,4 +467,4 @@ cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
"""
assert
tester
.
get_display
()
==
expected
assert
tester
.
get_display
(
True
)
==
expected
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