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
b407a5f0
Commit
b407a5f0
authored
6 years ago
by
Holger
Browse files
Options
Downloads
Patches
Plain Diff
Fix constants and unittests
parent
65bcdec4
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
README.rst
+4
-1
4 additions, 1 deletion
README.rst
beem/constants.py
+1
-0
1 addition, 0 deletions
beem/constants.py
tests/beem/test_constants.py
+10
-1
10 additions, 1 deletion
tests/beem/test_constants.py
tests/beemapi/test_steemnoderpc.py
+2
-2
2 additions, 2 deletions
tests/beemapi/test_steemnoderpc.py
with
17 additions
and
4 deletions
README.rst
+
4
−
1
View file @
b407a5f0
...
...
@@ -107,7 +107,7 @@ Signing and Verify can be fasten (200 %) by installing cryptography:
pip install -U cryptography
Install beem by pip::
Install
or update
beem by pip::
pip install -U beem
...
...
@@ -140,6 +140,9 @@ Signing and Verify can be fasten (200 %) by installing cryptography::
conda install cryptography
beem can be updated by::
conda update beem
CLI tool beempy
---------------
...
...
This diff is collapsed.
Click to expand it.
beem/constants.py
+
1
−
0
View file @
b407a5f0
...
...
@@ -10,4 +10,5 @@ STEEM_1_PERCENT = 100
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF20
=
900
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF6
=
1800
STEEM_VOTE_REGENERATION_SECONDS
=
432000
STEEM_VOTING_MANA_REGENERATION_SECONDS
=
432000
STEEM_ROOT_POST_PARENT
=
''
This diff is collapsed.
Click to expand it.
tests/beem/test_constants.py
+
10
−
1
View file @
b407a5f0
...
...
@@ -63,15 +63,24 @@ class Testcases(unittest.TestCase):
if
"
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
"
in
steem_conf
:
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
=
steem_conf
[
'
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
'
]
elif
"
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF6
"
in
steem_conf
:
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
=
steem_conf
[
'
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF6
'
]
else
:
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
=
steem_conf
[
'
STEEMIT_REVERSE_AUCTION_WINDOW_SECONDS
'
]
self
.
assertEqual
(
constants
.
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF6
,
STEEM_REVERSE_AUCTION_WINDOW_SECONDS
)
if
"
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF20
"
in
steem_conf
:
self
.
assertEqual
(
constants
.
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF20
,
steem_conf
[
"
STEEM_REVERSE_AUCTION_WINDOW_SECONDS_HF20
"
])
if
"
STEEM_VOTE_REGENERATION_SECONDS
"
in
steem_conf
:
STEEM_VOTE_REGENERATION_SECONDS
=
steem_conf
[
'
STEEM_VOTE_REGENERATION_SECONDS
'
]
self
.
assertEqual
(
constants
.
STEEM_VOTE_REGENERATION_SECONDS
,
STEEM_VOTE_REGENERATION_SECONDS
)
elif
"
STEEM_VOTING_MANA_REGENERATION_SECONDS
"
in
steem_conf
:
STEEM_VOTING_MANA_REGENERATION_SECONDS
=
steem_conf
[
"
STEEM_VOTING_MANA_REGENERATION_SECONDS
"
]
self
.
assertEqual
(
constants
.
STEEM_VOTING_MANA_REGENERATION_SECONDS
,
STEEM_VOTING_MANA_REGENERATION_SECONDS
)
else
:
STEEM_VOTE_REGENERATION_SECONDS
=
steem_conf
[
'
STEEMIT_VOTE_REGENERATION_SECONDS
'
]
self
.
assertEqual
(
constants
.
STEEM_VOTE_REGENERATION_SECONDS
,
STEEM_VOTE_REGENERATION_SECONDS
)
self
.
assertEqual
(
constants
.
STEEM_VOTE_REGENERATION_SECONDS
,
STEEM_VOTE_REGENERATION_SECONDS
)
if
"
STEEM_ROOT_POST_PARENT
"
in
steem_conf
:
STEEM_ROOT_POST_PARENT
=
steem_conf
[
'
STEEM_ROOT_POST_PARENT
'
]
...
...
This diff is collapsed.
Click to expand it.
tests/beemapi/test_steemnoderpc.py
+
2
−
2
View file @
b407a5f0
...
...
@@ -32,8 +32,8 @@ class Testcases(unittest.TestCase):
def
setUpClass
(
cls
):
nodelist
=
NodeList
()
nodelist
.
update_nodes
(
steem_instance
=
Steem
(
node
=
nodelist
.
get_nodes
(
normal
=
True
,
appbase
=
True
),
num_retries
=
3
))
cls
.
nodes
=
nodelist
.
get_nodes
(
https
=
False
,
appbase
=
Fals
e
)
cls
.
nodes_https
=
nodelist
.
get_nodes
(
wss
=
False
,
appbase
=
Fals
e
)
cls
.
nodes
=
nodelist
.
get_nodes
(
https
=
False
,
appbase
=
Tru
e
)
cls
.
nodes_https
=
nodelist
.
get_nodes
(
wss
=
False
,
appbase
=
Tru
e
)
cls
.
nodes_appbase
=
nodelist
.
get_nodes
(
normal
=
False
)
cls
.
test_list
=
nodelist
.
get_nodes
()
...
...
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