Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
1d0f4d44
Commit
1d0f4d44
authored
7 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
try to fix unit tests
parent
9775e203
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/websocket.rst
+1
-1
1 addition, 1 deletion
docs/websocket.rst
steempy/steem.py
+0
-1
0 additions, 1 deletion
steempy/steem.py
steempy/transactionbuilder.py
+4
-2
4 additions, 2 deletions
steempy/transactionbuilder.py
tests/test_steem_testnet.py
+1
-1
1 addition, 1 deletion
tests/test_steem_testnet.py
with
6 additions
and
5 deletions
docs/websocket.rst
+
1
−
1
View file @
1d0f4d44
...
@@ -11,7 +11,7 @@ node.
...
@@ -11,7 +11,7 @@ node.
from steempyapi.websocket import SteemWebsocket
from steempyapi.websocket import SteemWebsocket
ws = SteemWebsocket(
ws = SteemWebsocket(
"wss://testnet.steem.vc,
"wss://testnet.steem.vc
"
,
accounts=["test"],
accounts=["test"],
# on_market=pprint,
# on_market=pprint,
on_account=print,
on_account=print,
...
...
This diff is collapsed.
Click to expand it.
steempy/steem.py
+
0
−
1
View file @
1d0f4d44
...
@@ -230,7 +230,6 @@ class Steem(object):
...
@@ -230,7 +230,6 @@ class Steem(object):
# Append tot he default buffer
# Append tot he default buffer
self
.
txbuffer
.
appendOps
(
ops
)
self
.
txbuffer
.
appendOps
(
ops
)
assert
permission
in
account
,
"
Could not access %s of account %s
"
%
(
permission
+
account
[
"
name
"
])
# Add signing information, signer, sign and optionally broadcast
# Add signing information, signer, sign and optionally broadcast
if
self
.
unsigned
:
if
self
.
unsigned
:
# In case we don't want to sign anything
# In case we don't want to sign anything
...
...
This diff is collapsed.
Click to expand it.
steempy/transactionbuilder.py
+
4
−
2
View file @
1d0f4d44
...
@@ -100,7 +100,7 @@ class TransactionBuilder(dict):
...
@@ -100,7 +100,7 @@ class TransactionBuilder(dict):
"""
"""
assert
permission
in
[
"
active
"
,
"
owner
"
,
"
posting
"
],
"
Invalid permission
"
assert
permission
in
[
"
active
"
,
"
owner
"
,
"
posting
"
],
"
Invalid permission
"
account
=
Account
(
account
,
steem_instance
=
self
.
steem
)
account
=
Account
(
account
,
steem_instance
=
self
.
steem
)
assert
permission
in
account
,
"
Could not access
%s of account %s
"
%
(
permission
+
account
[
"
name
"
])
assert
permission
in
account
,
"
Could not access
permission
"
required_treshold
=
account
[
permission
][
"
weight_threshold
"
]
required_treshold
=
account
[
permission
][
"
weight_threshold
"
]
...
@@ -137,7 +137,9 @@ class TransactionBuilder(dict):
...
@@ -137,7 +137,9 @@ class TransactionBuilder(dict):
)
)
)
)
else
:
else
:
account
=
Account
(
account
,
steem_instance
=
self
.
steem
)
if
isinstance
(
account
,
str
):
account
=
Account
(
account
,
steem_instance
=
self
.
steem
)
assert
permission
in
account
,
"
Could not access permission
"
required_treshold
=
account
[
permission
][
"
weight_threshold
"
]
required_treshold
=
account
[
permission
][
"
weight_threshold
"
]
keys
=
fetchkeys
(
account
,
permission
)
keys
=
fetchkeys
(
account
,
permission
)
if
permission
!=
"
owner
"
:
if
permission
!=
"
owner
"
:
...
...
This diff is collapsed.
Click to expand it.
tests/test_steem_testnet.py
+
1
−
1
View file @
1d0f4d44
...
@@ -21,7 +21,7 @@ class Testcases(unittest.TestCase):
...
@@ -21,7 +21,7 @@ class Testcases(unittest.TestCase):
self
.
bts
=
Steem
(
self
.
bts
=
Steem
(
"
wss://testnet.steem.vc
"
,
"
wss://testnet.steem.vc
"
,
nobroadcast
=
True
,
nobroadcast
=
True
,
unsigned
=
True
,
#
unsigned = True,
keys
=
{
"
active
"
:
wif
,
"
owner
"
:
wif
,
"
memo
"
:
wif
},
keys
=
{
"
active
"
:
wif
,
"
owner
"
:
wif
,
"
memo
"
:
wif
},
)
)
# from getpass import getpass
# from getpass import getpass
...
...
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