Rev4102, Fix fileGet test

This commit is contained in:
shortcutme 2019-06-06 03:17:42 +02:00
parent c05916477c
commit eeef6fe65f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ class TestFileRequest:
# Stream from parent dir
response = connection.request("getFile", {"site": site.address, "inner_path": "../users.json", "location": 0})
assert "File read error" in response["error"]
assert "File read exception" in response["error"]
# Invalid site
response = connection.request("getFile", {"site": "", "inner_path": "users.json", "location": 0})
@ -77,7 +77,7 @@ class TestFileRequest:
# Stream from parent dir
buff = io.BytesIO()
response = connection.request("streamFile", {"site": site.address, "inner_path": "../users.json", "location": 0}, buff)
assert "File read error" in response["error"]
assert "File read exception" in response["error"]
connection.close()
client.stop()