Skip to content

Commit

Permalink
fix some datasets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 19, 2016
1 parent d157189 commit 019d7e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test-registry-datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ def test_datasets_limit():
"registry.datasets - limit param"
res = registry.datasets(limit=1)
assert dict == res.__class__
assert 1 == len(res['data'])
assert 1 == len(res['results'])

res = registry.datasets(limit=3)
assert dict == res.__class__
assert 3 == len(res['data'])
assert 3 == len(res['results'])

def test_datasets_type():
"registry.datasets - type param"
res = registry.datasets(type="OCCURRENCE")
vv = [ x['type'] for x in res['data'] ]
vv = [ x['type'] for x in res['results'] ]
assert dict == res.__class__
assert 100 == len(res['data'])
assert 100 == len(res['results'])
assert 'OCCURRENCE' == list(set(vv))[0]

def test_dataset_metrics():
Expand Down

0 comments on commit 019d7e3

Please sign in to comment.