Files
omdb/tests/error_test.py
Nettika 300c7d7763 Write API wrapper class
- Query by IMDb IMDb
- Query by title

Remove the pytest-httpx plugin

Cleanup some of the omdb.result unit tests
2024-05-06 12:42:20 -07:00

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"