mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Aww. Adjust the website test html code since my easter egg didn't work
This commit is contained in:
parent
f4f7b984e5
commit
458a0fb1d0
@ -19,7 +19,7 @@ class GuiWebsiteTest(GuiShareTest):
|
||||
'''Create GUI with given settings'''
|
||||
# Create our test file
|
||||
testfile = open('/tmp/index.html', 'w')
|
||||
testfile.write('<html><blink>This is a test website hosted by OnionShare</blink></html>')
|
||||
testfile.write('<html><body><p>This is a test website hosted by OnionShare</p></body></html>')
|
||||
testfile.close()
|
||||
|
||||
common = Common()
|
||||
@ -64,7 +64,7 @@ class GuiWebsiteTest(GuiShareTest):
|
||||
r = requests.get(url, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.website_mode.server_status.web.password))
|
||||
|
||||
QtTest.QTest.qWait(2000)
|
||||
self.assertTrue('<blink>This is a test website hosted by OnionShare</blink>' in r.text)
|
||||
self.assertTrue('This is a test website hosted by OnionShare' in r.text)
|
||||
|
||||
def run_all_website_mode_setup_tests(self):
|
||||
"""Tests in website mode prior to starting a share"""
|
||||
|
Loading…
Reference in New Issue
Block a user