FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-bitshares/tests/brokeninstance.py at master · bitshares/python-bitshares · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
bitshares
/
python-bitshares
Public
Notifications
You must be signed in to change notification settings
Fork
164
Star
162
Code
Issues
10
Pull requests
4
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-bitshares
/
tests
/
brokeninstance.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 540 Bytes
Breadcrumbs
python-bitshares
/
tests
/
brokeninstance.py
Copy path
File metadata and controls
20 lines (15 loc) · 540 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
class
BrokenBitsharesInstance
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
pass
def
__getattr__
(
self
,
name
):
raise
ValueError
(
"Attempting to use BrokenBitsharesInstance"
)
class
BitsharesIsolator
(
object
):
enabled
=
False
@
classmethod
def
enable
(
self
):
if
not
self
.
enabled
:
from
bitshares
.
instance
import
set_shared_bitshares_instance
broken
=
BrokenBitsharesInstance
()
set_shared_bitshares_instance
(
broken
)
self
.
enabled
=
True
Back
|
FazBrowse Home
|
New Git URL