Skip to content

Commit 1e743f1

Browse files
committed
adjust test_api order
1 parent c4b85b2 commit 1e743f1

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/test_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -827,16 +827,6 @@ def test_domain_hotlist():
827827
assert "proximity_risk" in feed_result.keys()
828828
assert "overall_risk" in feed_result.keys()
829829

830-
831-
@vcr.use_cassette
832-
def test_feeds_endpoint_should_raise_error_if_signed_api_key_is_used():
833-
feeds_api.always_sign_api_key = True
834-
with pytest.raises(ValueError) as excinfo:
835-
feeds_api.domaindiscovery(after="-60")
836-
837-
assert str(excinfo.value) == "Real Time Threat Feeds do not support signed API keys."
838-
839-
840830
@vcr.use_cassette
841831
def test_ip_hotlist():
842832
results = feeds_api.iphotlist(after="-60", top=5)
@@ -873,3 +863,13 @@ def test_ip_risk():
873863
assert "total_domains" in feed_result.keys()
874864
assert "all_threats_combined_count" in feed_result.keys()
875865
assert "all_threats_combined_percent" in feed_result.keys()
866+
867+
868+
@vcr.use_cassette
869+
def test_feeds_endpoint_should_raise_error_if_signed_api_key_is_used():
870+
feeds_api.always_sign_api_key = True
871+
with pytest.raises(ValueError) as excinfo:
872+
feeds_api.domaindiscovery(after="-60")
873+
874+
assert str(excinfo.value) == "Real Time Threat Feeds do not support signed API keys."
875+

0 commit comments

Comments
 (0)