Skip to content

Commit 1e01340

Browse files
author
Joel Collins
committed
Fixed test encoding
1 parent 0636715 commit 1e01340

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_server_labthing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_add_view(thing, view_cls, client):
3939
thing.add_view(view_cls, "/index", endpoint="index")
4040

4141
with client as c:
42-
assert c.get("/index").data == b"GET"
42+
assert c.get("/index").data == b"GET\n"
4343

4444

4545
def test_add_view_endpoint_clash(thing, view_cls, client):
@@ -55,7 +55,7 @@ def get(self):
5555
return "GET"
5656

5757
with client as c:
58-
assert c.get("/index").data == b"GET"
58+
assert c.get("/index").data == b"GET\n"
5959

6060

6161
def test_add_view_action(thing, view_cls, client):
@@ -77,7 +77,7 @@ def test_init_app_early_views(app, view_cls, client):
7777
thing.init_app(app)
7878

7979
with client as c:
80-
assert c.get("/index").data == b"GET"
80+
assert c.get("/index").data == b"GET\n"
8181

8282

8383
def test_register_extension(thing):

0 commit comments

Comments
 (0)