Skip to content

Commit

Permalink
fixed read test that was breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
wrp801 committed Nov 18, 2024
1 parent e10de13 commit 950bf26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shipyard_blueprints/magnite/tests/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from dotenv import load_dotenv, find_dotenv
from shipyard_magnite import MagniteClient
from shipyard_magnite.errs import ReadError
from pytest import MonkeyPatch
from copy import deepcopy
from requests.exceptions import HTTPError
Expand All @@ -29,12 +30,12 @@ def test_read_invalid_campaign(client):
campaign_id = "bad_campaign_id"
client.connect()

with pytest.raises(HTTPError):
with pytest.raises(ReadError):
client.read("campaigns", campaign_id)


def test_read_invalid_endpoint(client):
campaign_id = os.getenv("CAMPAIGN_ID")
client.connect()
with pytest.raises(HTTPError):
with pytest.raises(ReadError):
client.read("bad-endpoint", campaign_id)

0 comments on commit 950bf26

Please sign in to comment.