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
8096f75d
Commit
8096f75d
authored
7 years ago
by
Chris Beaven
Browse files
Options
Downloads
Patches
Plain Diff
Add basic test for Asset.calls property
parent
cea86adb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements-test.txt
+1
-0
1 addition, 0 deletions
requirements-test.txt
tests/test_asset.py
+9
-0
9 additions, 0 deletions
tests/test_asset.py
with
10 additions
and
0 deletions
requirements-test.txt
+
1
−
0
View file @
8096f75d
...
@@ -4,4 +4,5 @@ scrypt==0.7.1
...
@@ -4,4 +4,5 @@ scrypt==0.7.1
Events==0.2.2
Events==0.2.2
pyyaml
pyyaml
pytest
pytest
pytest-mock
coverage
coverage
This diff is collapsed.
Click to expand it.
tests/test_asset.py
0 → 100644
+
9
−
0
View file @
8096f75d
from
bitshares.asset
import
Asset
from
bitshares
import
BitShares
def
test_calls
(
mocker
):
asset
=
Asset
(
"
USD
"
,
lazy
=
True
,
bitshares_instance
=
BitShares
(
offline
=
True
))
method
=
mocker
.
patch
.
object
(
Asset
,
'
get_call_orders
'
)
asset
.
calls
method
.
assert_called_with
(
10
)
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