mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
15 lines
331 B
Python
15 lines
331 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize("insecure", [None, "0", "1"])
|
|
def test_add_oauth2_scheme(app, utils, insecure):
|
|
import os
|
|
|
|
if insecure:
|
|
os.environ["AUTHLIB_INSECURE_TRANSPORT"] = insecure
|
|
else:
|
|
del os.environ["AUTHLIB_INSECURE_TRANSPORT"]
|
|
|
|
url = utils.get_url("home")
|
|
utils.get_ok(url)
|