mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-24 11:09:54 +00:00
18 lines
362 B
Python
18 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'
|