We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3d9bf commit cec9fdaCopy full SHA for cec9fda
tests/backends/rest/test_rest.py
@@ -8,7 +8,8 @@ class TestRestServer:
8
@pytest.fixture(scope="class")
9
def client(self, assertable_controller):
10
app = RestBackend(assertable_controller)._server._app
11
- return TestClient(app)
+ with TestClient(app) as client:
12
+ yield client
13
14
def test_read_int(self, assertable_controller, client):
15
expect = 0
0 commit comments