Skip to content

Commit

Permalink
Assert in test
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Aug 23, 2020
1 parent 3b6213a commit 67fc101
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='''siu-data''',
version='0.2.10',
version='0.2.11',
description='''SIU data''',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
7 changes: 7 additions & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,22 @@ def test_load_all(self):
@pytest.mark.vcr()
def test_request_all(self):
report = []
errores = 0
datasets_ok = 0
for qf in self.siudata.query_files:
stqf = SIUTranspQueryFile(portal=self.siudata, path=qf)
# open to read query params
stqf.open()
# request all data
stqf.request_all(results_folder_path=self.results_folder_path)
for err in stqf.errors:
errores += 1
print(err)

report += stqf.requests
for dataset in stqf.datasets:
datasets_ok += 1
print('Dataset {}'.format(dataset['name']))

assert errores == 27
assert datasets_ok == 207

0 comments on commit 67fc101

Please sign in to comment.