diff options
author | Saptak S <saptak013@gmail.com> | 2021-08-28 17:33:16 +0530 |
---|---|---|
committer | Saptak S <saptak013@gmail.com> | 2021-09-04 19:17:31 +0530 |
commit | e4880851166dc8db3818807c62862520eaec5d88 (patch) | |
tree | fe9db9685c87bd8d16f76128a687f11029ffcf69 | |
parent | 3620bf3a0c3066622ebf396a3bbc5801e90c094f (diff) | |
download | onionshare-e4880851166dc8db3818807c62862520eaec5d88.tar.gz onionshare-e4880851166dc8db3818807c62862520eaec5d88.zip |
Updates the tests to use a full path instead of basename
-rw-r--r-- | desktop/tests/test_gui_share.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/tests/test_gui_share.py b/desktop/tests/test_gui_share.py index d3536569..2cc48d17 100644 --- a/desktop/tests/test_gui_share.py +++ b/desktop/tests/test_gui_share.py @@ -99,7 +99,7 @@ class TestShare(GuiBaseTest): self.assertEqual(r.status_code, 404) self.download_share(tab) else: - self.assertTrue('a href="test.txt"' in r.text) + self.assertTrue('a href="/test.txt"' in r.text) r = requests.get(download_file_url) tmp_file = tempfile.NamedTemporaryFile("wb", delete=False) |