- Query by IMDb IMDb - Query by title Remove the pytest-httpx plugin Cleanup some of the omdb.result unit tests
10 lines
221 B
Python
10 lines
221 B
Python
from omdb.error import OmdbError
|
|
|
|
|
|
def test_omdb_error():
|
|
"""Tests the `OmdbError` class initialization."""
|
|
|
|
error = OmdbError(404, "Not Found")
|
|
assert error.status == 404
|
|
assert str(error) == "Not Found"
|