Debian Codegraph @

tests/unit/test_preflight_handler.py

raw symbols SCIP
1 from unittest import mock
2
3 import pytest
4
5 from aiohttp_cors.preflight_handler import _PreflightHandler
6
7
8 async def test_raises_when_handler_not_extend():
9 request = mock.Mock()
10 handler = _PreflightHandler()
11 with pytest.raises(NotImplementedError):
12 await handler._get_config(request, "origin", "GET")