* Added a wrapper for get_oas to throw spec info (#12) * Added tests generate_oas * Moved params to Application Co-authored-by: Спиненко Иван ispinenko@ussc.ru <ispinenko@ussc.ru>
This commit is contained in:
@@ -9,6 +9,7 @@ def test_sever_url():
|
||||
oas.servers[1].url = "https://development.gigantic-server.com/v2"
|
||||
assert oas.spec == {
|
||||
"openapi": "3.0.0",
|
||||
"info": {"title": "Aiohttp pydantic application", "version": "1.0.0"},
|
||||
"servers": [
|
||||
{"url": "https://development.gigantic-server.com/v1"},
|
||||
{"url": "https://development.gigantic-server.com/v2"},
|
||||
@@ -22,6 +23,7 @@ def test_sever_description():
|
||||
oas.servers[0].description = "Development server"
|
||||
assert oas.spec == {
|
||||
"openapi": "3.0.0",
|
||||
"info": {"title": "Aiohttp pydantic application", "version": "1.0.0"},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://development.gigantic-server.com/v1",
|
||||
|
||||
Reference in New Issue
Block a user