Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
silkaj
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
matograine
silkaj
Commits
2a688826
Commit
2a688826
authored
Jul 28, 2019
by
Moul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] #241: `silkaj` not found, call "poetry run bin/silkaj" in the test to access Silkaj
parent
966204d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tests/test_end_to_end.py
tests/test_end_to_end.py
+6
-4
No files found.
tests/test_end_to_end.py
View file @
2a688826
from
subprocess
import
check_output
from
subprocess
import
check_output
silkaj
=
[
"poetry"
,
"run"
,
"bin/silkaj"
]
def
test_info
():
def
test_info
():
"""tests 'silkaj info' returns a number of members"""
"""tests 'silkaj info' returns a number of members"""
output
=
check_output
(
[
"silkaj"
,
"info"
])
output
=
check_output
(
silkaj
+
[
"info"
])
assert
"Number of members"
in
output
.
decode
()
assert
"Number of members"
in
output
.
decode
()
def
test_wot
():
def
test_wot
():
"""tests 'silkaj wot' returns a number of members"""
"""tests 'silkaj wot' returns a number of members"""
output
=
check_output
(
[
"silkaj"
,
"wot"
,
"moul"
])
.
decode
()
output
=
check_output
(
silkaj
+
[
"wot"
,
"moul"
])
.
decode
()
assert
"moul (GfKER…) from block #0-E3B0C44298FC1…"
in
output
assert
"moul (GfKER…) from block #0-E3B0C44298FC1…"
in
output
assert
"received_expire"
in
output
assert
"received_expire"
in
output
assert
"received"
in
output
assert
"received"
in
output
...
@@ -22,7 +24,7 @@ def test_wot():
...
@@ -22,7 +24,7 @@ def test_wot():
def
test_id
():
def
test_id
():
"""tests 'silkaj id' certification on gtest"""
"""tests 'silkaj id' certification on gtest"""
output
=
check_output
(
[
"silkaj"
,
"--gtest"
,
"id"
,
"elois"
])
.
decode
()
output
=
check_output
(
silkaj
+
[
"--gtest"
,
"id"
,
"elois"
])
.
decode
()
assert
"D7CYHJXjaH4j7zRdWngUbsURPnSnjsCYtvo6f8dvW3C"
in
output
assert
"D7CYHJXjaH4j7zRdWngUbsURPnSnjsCYtvo6f8dvW3C"
in
output
...
@@ -30,7 +32,7 @@ def test_amount():
...
@@ -30,7 +32,7 @@ def test_amount():
"""tests 'silkaj amount' command on gtest"""
"""tests 'silkaj amount' command on gtest"""
output
=
check_output
(
output
=
check_output
(
[
"silkaj"
,
"--gtest"
,
"balance"
,
"3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"
]
silkaj
+
[
"--gtest"
,
"balance"
,
"3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"
]
)
.
decode
()
)
.
decode
()
assert
"Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"
in
output
assert
"Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"
in
output
assert
"Total Relative ="
in
output
assert
"Total Relative ="
in
output
...
...
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