Skip to content

Commit 125acbf

Browse files
committed
change bad request error to not found error
1 parent 343a318 commit 125acbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_room_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_valid(self, room_api: FishjamClient):
144144
config = RoomConfig(
145145
max_peers=None,
146146
webhook_url=None,
147-
room_type=RoomConfigRoomType.CONFERENCE,
147+
room_type=RoomConfigRoomType(CONFERENCE),
148148
)
149149

150150
assert Room(
@@ -154,7 +154,7 @@ def test_valid(self, room_api: FishjamClient):
154154
) == room_api.get_room(room.id)
155155

156156
def test_invalid(self, room_api: FishjamClient):
157-
with pytest.raises(BadRequestError):
157+
with pytest.raises(NotFoundError):
158158
room_api.get_room("invalid_id")
159159

160160
def test_id_not_found(self, room_api):

0 commit comments

Comments
 (0)