Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit ce5afda

Browse files
committed
Update test for duplicate code error
1 parent f999ab1 commit ce5afda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/access_codes/test_access_codes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from seamapi import Seam
2-
from seamapi.types import ActionAttemptFailedException
2+
from seamapi.types import SeamAPIException
33
from tests.fixtures.run_august_factory import run_august_factory
44
import pytest
55

@@ -21,7 +21,7 @@ def test_access_codes(seam: Seam):
2121
access_code = seam.access_codes.get(created_access_code.access_code_id)
2222
assert access_code.code == "4444"
2323

24-
with pytest.raises(ActionAttemptFailedException):
24+
with pytest.raises(SeamAPIException):
2525
seam.access_codes.create(some_device.device_id, "Duplicate Access Code", "4444")
2626

2727
access_code = seam.access_codes.update(access_code, name="Updated name")

0 commit comments

Comments
 (0)