Skip to content

Commit

Permalink
AUTM-76 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Gibson committed Jan 30, 2024
1 parent 3659b4a commit b09d592
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_gravity_forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from unittest.mock import patch

import pytest
from requests.exceptions import RequestException
from sat.gravity_forms import GravityForms

Expand All @@ -20,8 +19,6 @@ def test_request_exception_get(caplog):
gravity_forms = GravityForms(
consumer_key="your_key", consumer_secret="your_secret", base_url="https://baseurl.edu"
)

with pytest.raises(RequestException):
gravity_forms.get("/forms")

response = gravity_forms.get("/forms/2/entries")
assert response == {}
assert "Simulated request exception." in caplog.text

0 comments on commit b09d592

Please sign in to comment.