Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Nov 27, 2024
1 parent 1665bc6 commit e22d1bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ def setUp(self):
self._app = self._create_app()
self._app.add_middleware(HTTPSRedirectMiddleware)
self._client = TestClient(self._app, base_url="https://testserver:443")
self._client.__enter__() # noqa: C2801 # run the lifespan, initialize the middleware stack
# run the lifespan, initialize the middleware stack
# this is more in-line with what happens in a real application when the server starts up
self._client.__enter__() # pylint: disable=unnecessary-dunder-call

def tearDown(self):
super().tearDown()
Expand Down

0 comments on commit e22d1bb

Please sign in to comment.