Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
d2608e8e
Commit
d2608e8e
authored
5 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[test]
#149
,
#241
: `silkaj` not found, call "poetry run bin/silkaj" in the test to access Silkaj
parent
0078f1d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_end_to_end.py
+6
-4
6 additions, 4 deletions
tests/test_end_to_end.py
with
6 additions
and
4 deletions
tests/test_end_to_end.py
+
6
−
4
View file @
d2608e8e
from
subprocess
import
check_output
silkaj
=
[
"
poetry
"
,
"
run
"
,
"
bin/silkaj
"
]
def
test_info
():
"""
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
()
def
test_wot
():
"""
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
"
received_expire
"
in
output
assert
"
received
"
in
output
...
...
@@ -22,7 +24,7 @@ def test_wot():
def
test_id
():
"""
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
...
...
@@ -30,7 +32,7 @@ def test_amount():
"""
tests
'
silkaj amount
'
command on gtest
"""
output
=
check_output
(
[
"
silkaj
"
,
"
--gtest
"
,
"
balance
"
,
"
3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj
"
]
silkaj
+
[
"
--gtest
"
,
"
balance
"
,
"
3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj
"
]
).
decode
()
assert
"
Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj
"
in
output
assert
"
Total Relative =
"
in
output
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment