test: fix webdav localhost assertion to match actual error message
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -969,7 +969,7 @@ class TestConnectionTestEndpoint:
|
|||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
assert data["success"] is False
|
assert data["success"] is False
|
||||||
assert "localhost" in data["message"].lower()
|
assert "internal" in data["message"].lower() or "private" in data["message"].lower()
|
||||||
|
|
||||||
def test_test_webdav_blocks_file_scheme(self, int_client):
|
def test_test_webdav_blocks_file_scheme(self, int_client):
|
||||||
"""WebDAV test blocks file:// scheme."""
|
"""WebDAV test blocks file:// scheme."""
|
||||||
|
|||||||
Reference in New Issue
Block a user