Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: cmm-lyft <[email protected]>
  • Loading branch information
cmm-lyft committed Dec 6, 2024
1 parent ad61e4a commit 7a8d6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/cartography/intel/cve/test_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_call_cves_api(mock_get: Mock):
result = _call_cves_api(NIST_CVE_URL, API_KEY, params)

# Assert
assert mock_get.call_count == 3
assert mock_get.call_count == 8
assert result == expected_result


Expand All @@ -157,7 +157,7 @@ def test_call_cves_api_with_error(mock_get: Mock):
_call_cves_api(NIST_CVE_URL, API_KEY, params)
except requests.exceptions.HTTPError as err:
assert err.response == mock_response
assert mock_get.call_count == 30
assert mock_get.call_count == 8


@patch("cartography.intel.cve.feed._call_cves_api")
Expand Down

0 comments on commit 7a8d6cc

Please sign in to comment.