mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-28 16:27:23 -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
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class GuiWebsiteTest(GuiShareTest):
|
||||||
'''Create GUI with given settings'''
|
'''Create GUI with given settings'''
|
||||||
# Create our test file
|
# Create our test file
|
||||||
testfile = open('/tmp/index.html', 'w')
|
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()
|
testfile.close()
|
||||||
|
|
||||||
common = Common()
|
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))
|
r = requests.get(url, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.website_mode.server_status.web.password))
|
||||||
|
|
||||||
QtTest.QTest.qWait(2000)
|
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):
|
def run_all_website_mode_setup_tests(self):
|
||||||
"""Tests in website mode prior to starting a share"""
|
"""Tests in website mode prior to starting a share"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue