diff --git a/README.md b/README.md
index 3cc87d4..8e9d9b6 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
[![Python versions](https://img.shields.io/pypi/pyversions/sensei?color=%23F94526)](https://pypi.org/project/sensei/)
[![PyPi Version](https://img.shields.io/pypi/v/sensei?color=%23F94526)](https://pypi.org/project/sensei/)
-[![PyPI Downloads](https://img.shields.io/pypi/dm/sensei?label=downloads&color=%23F94526)](https://pypi.org/project/sensei/)
+[![Coverage](https://raw.githubusercontent.com/CrocoFactory/sensei/main/badges/coverage.svg)](https://pypi.org/project/sensei/)
The python framework, providing fast and robust way to build client-side API wrappers.
diff --git a/badges/coverage.svg b/badges/coverage.svg
index 691499d..822d400 100644
--- a/badges/coverage.svg
+++ b/badges/coverage.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/test_client.py b/tests/test_client.py
index e353719..994bdaa 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -76,7 +76,6 @@ def test_rate_limit(self, base_url, sync_maker, base_maker):
base = base_maker(router)
model = sync_maker(router, base)
- now = time.time()
model.get(1)
assert rate_limit._tokens == 1
@@ -88,6 +87,5 @@ async def test_async_rate_limit(self, base_url, async_maker, base_maker):
base = base_maker(router)
model = async_maker(router, base)
- now = time.time()
await model.get(1) # type: ignore
assert rate_limit._tokens == 1
diff --git a/tests/test_validation.py b/tests/test_validation.py
index 979b96a..9fa68e1 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -1,4 +1,5 @@
import pytest
+from httpx import HTTPStatusError
from typing_extensions import Self
from sensei import APIModel
@@ -36,3 +37,10 @@ def delete(self) -> Self: ...
with pytest.raises(ValueError):
print(_ValidationModel().delete())
+
+ def test_raise_for_status(self, router, base_maker, sync_maker):
+ base = base_maker(router)
+ model = sync_maker(router, base)
+
+ with pytest.raises(HTTPStatusError):
+ model.get(0)
\ No newline at end of file