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
e6352788
Commit
e6352788
authored
4 years ago
by
Holger
Browse files
Options
Downloads
Patches
Plain Diff
Delete test_websocket.py
parent
b994bf77
No related branches found
No related tags found
2 merge requests
!5
Taken current version of master branch in the https://github.com/holgern/beem
,
!4
Original changes pushed to master at https://github.com/holgern/beem
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/beemapi/test_websocket.py
+0
-38
0 additions, 38 deletions
tests/beemapi/test_websocket.py
with
0 additions
and
38 deletions
tests/beemapi/test_websocket.py
deleted
100644 → 0
+
0
−
38
View file @
b994bf77
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
unicode_literals
from
builtins
import
range
from
builtins
import
super
import
string
import
unittest
import
random
import
itertools
from
pprint
import
pprint
from
beem
import
Steem
from
beemapi.websocket
import
NodeWebsocket
from
beem.instance
import
set_shared_steem_instance
from
beem.nodelist
import
NodeList
# Py3 compatibility
import
sys
wif
=
"
5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
"
core_unit
=
"
STM
"
class
Testcases
(
unittest
.
TestCase
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
nodelist
=
NodeList
()
nodelist
.
update_nodes
(
steem_instance
=
Steem
(
node
=
nodelist
.
get_steem_nodes
(),
num_retries
=
10
))
stm
=
Steem
(
node
=
nodelist
.
get_steem_nodes
())
self
.
ws
=
NodeWebsocket
(
urls
=
stm
.
rpc
.
nodes
,
num_retries
=
10
)
def
test_connect
(
self
):
ws
=
self
.
ws
self
.
assertTrue
(
len
(
next
(
ws
.
nodes
))
>
0
)
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