Skip to content
GitLab
Explore
Sign in
Register
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
63939144
Commit
63939144
authored
7 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
First step of replacing Bitshares by Steem
parent
c7f98992
No related branches found
No related tags found
No related merge requests found
Changes
62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_wallet.py
+9
-9
9 additions, 9 deletions
tests/test_wallet.py
tox.ini
+1
-1
1 addition, 1 deletion
tox.ini
with
10 additions
and
10 deletions
tests/test_wallet.py
+
9
−
9
View file @
63939144
import
unittest
import
mock
from
pprint
import
pprint
from
bitshares
import
BitShares
from
bitshares
.account
import
Account
from
bitshares
.amount
import
Amount
from
bitshares
.asset
import
Asset
from
bitshares
.instance
import
set_shared_
bitshares
_instance
from
bitsharesbase
.operationids
import
getOperationNameForId
from
steem
import
Steem
from
steem
.account
import
Account
from
steem
.amount
import
Amount
from
steem
.asset
import
Asset
from
steem
.instance
import
set_shared_
steem
_instance
from
steem
.operationids
import
getOperationNameForId
wif
=
"
5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
"
...
...
@@ -16,12 +16,12 @@ class Testcases(unittest.TestCase):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
self
.
bts
=
BitShares
(
self
.
stm
=
Steem
(
nobroadcast
=
True
,
# We want to bundle many operations into a single transaction
bundle
=
True
,
# Overwrite wallet to use this list of wifs only
wif
=
[
wif
]
)
self
.
bts
.
set_default_account
(
"
init0
"
)
set_shared_
bitshares
_instance
(
self
.
bts
)
self
.
stm
.
set_default_account
(
"
init0
"
)
set_shared_
steem
_instance
(
self
.
stm
)
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
1
View file @
63939144
...
...
@@ -13,7 +13,7 @@ commands=
deps
=
flake8
commands
=
flake8
--ignore
=
E501,F401
bitsharesapi bitshares
base examples
flake8
--ignore
=
E501,F401
steemapi steem
base examples
[testenv:docs]
basepython
=
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next
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