Skip to content

Commit

Permalink
Use preferred pytest raises syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonj04 committed Nov 9, 2023
1 parent aee3b46 commit 9578c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_reading_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import TestCase
from unittest.mock import Mock, patch

import pytest
from caselawclient.Client import MarklogicResourceNotFoundError
from caselawclient.search_parameters import SearchParameters
from fastapi.testclient import TestClient
Expand All @@ -11,7 +11,7 @@
def test_unpack_list():
assert unpack_list([1]) == 1
assert unpack_list([]) is None
with TestCase().assertRaises(AssertionError):
with pytest.raises(AssertionError):
unpack_list([1, 1])


Expand Down

0 comments on commit 9578c02

Please sign in to comment.