mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 03:00:12 +00:00
19 lines
362 B
Python
19 lines
362 B
Python
|
from openapi_core.validation.util import path_qs
|
||
|
|
||
|
|
||
|
class TestPathQs(object):
|
||
|
|
||
|
def test_path(self):
|
||
|
url = 'https://test.com:1234/path'
|
||
|
|
||
|
result = path_qs(url)
|
||
|
|
||
|
assert result == '/path'
|
||
|
|
||
|
def test_query(self):
|
||
|
url = 'https://test.com:1234/path?query=1'
|
||
|
|
||
|
result = path_qs(url)
|
||
|
|
||
|
assert result == '/path?query=1'
|