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
0930ed18
Commit
0930ed18
authored
6 years ago
by
Holger
Browse files
Options
Downloads
Patches
Plain Diff
Add Changelog for 0.20.14 and improve unit tests
parent
893b3318
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+8
-0
8 additions, 0 deletions
CHANGELOG.rst
tests/beem/test_account.py
+2
-2
2 additions, 2 deletions
tests/beem/test_account.py
tests/beem/test_vote.py
+2
-15
2 additions, 15 deletions
tests/beem/test_vote.py
with
12 additions
and
17 deletions
CHANGELOG.rst
+
8
−
0
View file @
0930ed18
Changelog
Changelog
=========
=========
0.20.14
-------
* unit tests fixed
* Account: support for retrieving all delegations (thanks to crookon, PR #129)
* Change recovery account / list recovery account change requests (thanks to crokkon, PR #130)
* Exclude sbd_interest_rate, as it is not present on the VIT blockchain (thanks to svitx, PR #132)
* connect for beempy createwallet (thanks to crokkon, PR #133)
0.20.13
0.20.13
-------
-------
* beempy post improved
* beempy post improved
...
...
This diff is collapsed.
Click to expand it.
tests/beem/test_account.py
+
2
−
2
View file @
0930ed18
...
@@ -37,7 +37,7 @@ class Testcases(unittest.TestCase):
...
@@ -37,7 +37,7 @@ class Testcases(unittest.TestCase):
keys
=
{
"
active
"
:
wif
},
keys
=
{
"
active
"
:
wif
},
num_retries
=
10
num_retries
=
10
)
)
cls
.
account
=
Account
(
"
beembot
"
,
full
=
True
,
steem_instance
=
cls
.
bts
)
cls
.
account
=
Account
(
"
beembot
"
,
steem_instance
=
cls
.
bts
)
set_shared_steem_instance
(
cls
.
bts
)
set_shared_steem_instance
(
cls
.
bts
)
def
test_account
(
self
):
def
test_account
(
self
):
...
@@ -405,7 +405,7 @@ class Testcases(unittest.TestCase):
...
@@ -405,7 +405,7 @@ class Testcases(unittest.TestCase):
op
[
"
from
"
])
op
[
"
from
"
])
def
test_json_export
(
self
):
def
test_json_export
(
self
):
account
=
self
.
account
account
=
Account
(
"
beembot
"
,
steem_instance
=
self
.
bts
)
if
account
.
steem
.
rpc
.
get_use_appbase
():
if
account
.
steem
.
rpc
.
get_use_appbase
():
content
=
self
.
bts
.
rpc
.
find_accounts
({
'
accounts
'
:
[
account
[
"
name
"
]]},
api
=
"
database
"
)[
"
accounts
"
][
0
]
content
=
self
.
bts
.
rpc
.
find_accounts
({
'
accounts
'
:
[
account
[
"
name
"
]]},
api
=
"
database
"
)[
"
accounts
"
][
0
]
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
tests/beem/test_vote.py
+
2
−
15
View file @
0930ed18
...
@@ -30,12 +30,6 @@ class Testcases(unittest.TestCase):
...
@@ -30,12 +30,6 @@ class Testcases(unittest.TestCase):
keys
=
{
"
active
"
:
wif
},
keys
=
{
"
active
"
:
wif
},
num_retries
=
10
num_retries
=
10
)
)
cls
.
testnet
=
Steem
(
node
=
"
https://testnet.steemitdev.com
"
,
nobroadcast
=
True
,
keys
=
{
"
active
"
:
wif
},
num_retries
=
10
)
# from getpass import getpass
# from getpass import getpass
# self.bts.wallet.unlock(getpass())
# self.bts.wallet.unlock(getpass())
set_shared_steem_instance
(
cls
.
bts
)
set_shared_steem_instance
(
cls
.
bts
)
...
@@ -95,15 +89,8 @@ class Testcases(unittest.TestCase):
...
@@ -95,15 +89,8 @@ class Testcases(unittest.TestCase):
self
.
assertTrue
(
vote
.
rep
is
not
None
)
self
.
assertTrue
(
vote
.
rep
is
not
None
)
self
.
assertTrue
(
vote
.
time
is
not
None
)
self
.
assertTrue
(
vote
.
time
is
not
None
)
@parameterized.expand
([
def
test_keyerror
(
self
):
(
"
normal
"
),
bts
=
self
.
bts
(
"
testnet
"
),
])
def
test_keyerror
(
self
,
node_param
):
if
node_param
==
"
normal
"
:
bts
=
self
.
bts
else
:
bts
=
self
.
testnet
with
self
.
assertRaises
(
with
self
.
assertRaises
(
exceptions
.
VoteDoesNotExistsException
exceptions
.
VoteDoesNotExistsException
):
):
...
...
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