We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d1bc7 commit daad51dCopy full SHA for daad51d
tests/test_resolver/test_resolver_schema_resolver.py
@@ -0,0 +1,22 @@
1
+import urllib
2
+
3
+import pytest
4
5
6
+def test___init__invalid_data(mocker):
7
+ from openapi_python_client.resolver.schema_resolver import SchemaResolver
8
9
+ with pytest.raises(ValueError):
10
+ SchemaResolver(None)
11
12
+ invalid_url = "foobar"
13
14
+ SchemaResolver(invalid_url)
15
16
+ invalid_url = 42
17
+ with pytest.raises(urllib.error.URLError):
18
19
20
+ invalid_url = mocker.Mock()
21
22
0 commit comments