From 933d005e5d24e6d357d21abe614f2a5f7d81509b Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Tue, 19 Jan 2021 16:17:07 +0200 Subject: [PATCH] squash --- tests/conftest.py | 2 +- tests/test_keep_alive_timeout.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 3d57ac73..cad8d754 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -127,6 +127,6 @@ def url_param_generator(): return TYPE_TO_GENERATOR_MAP -@pytest.fixture +@pytest.fixture(scope="function") def app(request): return Sanic(request.node.name) diff --git a/tests/test_keep_alive_timeout.py b/tests/test_keep_alive_timeout.py index 1b98c229..ebbec2b5 100644 --- a/tests/test_keep_alive_timeout.py +++ b/tests/test_keep_alive_timeout.py @@ -8,10 +8,11 @@ import httpcore import httpx import pytest +from sanic_testing.testing import HOST, SanicTestClient + from sanic import Sanic, server from sanic.compat import OS_IS_WINDOWS from sanic.response import text -from sanic.testing import HOST, SanicTestClient CONFIG_FOR_TESTS = {"KEEP_ALIVE_TIMEOUT": 2, "KEEP_ALIVE": True}