mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-17 01:34:37 +00:00
Make Swagger Auth URLs https #107
This commit is contained in:
parent
1104bde5b4
commit
0fb69ec3c2
@ -1,14 +1,7 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize("insecure", [None, "0", "1"])
|
||||
def test_add_oauth2_scheme(app, utils, insecure):
|
||||
def test_add_oauth2_scheme(app, utils):
|
||||
import os
|
||||
|
||||
if insecure:
|
||||
os.environ["AUTHLIB_INSECURE_TRANSPORT"] = insecure
|
||||
else:
|
||||
del os.environ["AUTHLIB_INSECURE_TRANSPORT"]
|
||||
del os.environ["AUTHLIB_INSECURE_TRANSPORT"]
|
||||
|
||||
url = utils.get_url("home")
|
||||
utils.get_ok(url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user