String literals and type annotations...
This commit is contained in:
@@ -641,7 +641,6 @@ def test_multiple_responses(
|
||||
"been responded to."
|
||||
)
|
||||
|
||||
|
||||
with caplog.at_level(ERROR):
|
||||
_, response = app.test_client.get("/1")
|
||||
assert response.status == 200
|
||||
|
||||
@@ -1124,7 +1124,7 @@ def test_route_invalid_host(app):
|
||||
return text("pass")
|
||||
|
||||
assert str(excinfo.value) == (
|
||||
"Expected either string or Iterable of " f"host strings, not {host!r}"
|
||||
f"Expected either string or Iterable of host strings, not {host!r}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -195,9 +195,7 @@ def test_with_custom_class_methods(app):
|
||||
|
||||
def get(self, request):
|
||||
self._iternal_method()
|
||||
return text(
|
||||
f"I am get method and global var " f"is {self.global_var}"
|
||||
)
|
||||
return text(f"I am get method and global var is {self.global_var}")
|
||||
|
||||
app.add_route(DummyView.as_view(), "/")
|
||||
request, response = app.test_client.get("/")
|
||||
|
||||
Reference in New Issue
Block a user