Skip to content

Commit

Permalink
pin ciso8601 to v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
deargle committed Feb 28, 2022
1 parent 7b2865f commit 2e88e4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -58,7 +58,7 @@ dev =
sphinx-server
testing =
pytest
ciso8601
ciso8601~=2.1.3
pytest-mock
pytest-socket
pytz
Expand Down
14 changes: 10 additions & 4 deletions tests/conftest.py
Expand Up @@ -197,11 +197,17 @@ def do_it(hits_json=None, all_studies=False, active=False):

stubber.add_response('list_hits', hits_json)
if active:
results = (amt_services_wrapper.get_active_hits(
all_studies=all_studies)).data
response = amt_services_wrapper.get_active_hits(
all_studies=all_studies)
if not response.data:
raise response.execption
results = response.data
else:
results = (amt_services_wrapper.get_all_hits(
all_studies=all_studies)).data
response = amt_services_wrapper.get_all_hits(
all_studies=all_studies)
if not response.data:
raise response.exception
results = response.data
return results

return do_it
Expand Down
4 changes: 0 additions & 4 deletions tests/test_amt.py
Expand Up @@ -71,7 +71,6 @@ def test_wrapper_hit_create_with_require_qualification(self, stubber, amt_servic
'HITId': 'ABC123'
}
})
# import pytest; pytest.set_trace()
response = amt_services_wrapper.create_hit(1, 0.01, 1,
require_qualification_ids=[REQUIRE_QUAL_ID])
if not response.success:
Expand Down Expand Up @@ -103,7 +102,6 @@ def test_wrapper_hit_create_with_multiple_require_qualifications(self, stubber,
'HITId': 'ABC123'
}
})
# import pytest; pytest.set_trace()
response = amt_services_wrapper.create_hit(1, 0.01, 1,
require_qualification_ids=REQUIRE_QUAL_IDS)
if not response.success:
Expand Down Expand Up @@ -175,7 +173,6 @@ def test_wrapper_hit_create_with_block_qualification(self, stubber, amt_services
'HITId': 'ABC123'
}
})
# import pytest; pytest.set_trace()
response = amt_services_wrapper.create_hit(1, 0.01, 1,
block_qualification_ids=[BLOCK_QUAL_ID])
if not response.success:
Expand Down Expand Up @@ -212,7 +209,6 @@ def test_wrapper_hit_create_with_require_and_block_qualifications(self, stubber,
'HITId': 'ABC123'
}
})
# import pytest; pytest.set_trace()
response = amt_services_wrapper.create_hit(1, 0.01, 1,
require_qualification_ids=[REQUIRE_QUAL_ID],
block_qualification_ids=[BLOCK_QUAL_ID])
Expand Down

0 comments on commit 2e88e4b

Please sign in to comment.