Skip to content

Commit 4ef7760

Browse files
committed
aiohttp exceptions unit tests
1 parent 0171a3d commit 4ef7760

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
3+
from openapi_core.contrib.aiohttp.requests import AIOHTTPOpenAPIWebRequest
4+
5+
6+
class TestAIOHTTPOpenAPIWebRequest:
7+
def test_type_invalid(self):
8+
with pytest.raises(TypeError):
9+
AIOHTTPOpenAPIWebRequest(None)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
3+
from openapi_core.contrib.aiohttp.responses import AIOHTTPOpenAPIWebResponse
4+
5+
6+
class TestAIOHTTPOpenAPIWebResponse:
7+
def test_type_invalid(self):
8+
with pytest.raises(TypeError):
9+
AIOHTTPOpenAPIWebResponse(None)

0 commit comments

Comments
 (0)