mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Don't show private key
This commit is contained in:
parent
b8cb4746b3
commit
b93c5c788a
7 changed files with 4 additions and 29 deletions
|
@ -282,13 +282,6 @@ class GuiBaseTest(unittest.TestCase):
|
|||
"""Test that the URL instructions for sharing are showing"""
|
||||
self.assertTrue(tab.get_mode().server_status.url_instructions.isVisible())
|
||||
|
||||
def private_key_shown(self, tab):
|
||||
"""Test that the Private Key is showing when not in public mode"""
|
||||
if not tab.settings.get("general", "public"):
|
||||
self.assertTrue(tab.get_mode().server_status.private_key.isVisible())
|
||||
else:
|
||||
self.assertFalse(tab.get_mode().server_status.private_key.isVisible())
|
||||
|
||||
def client_auth_instructions_shown(self, tab):
|
||||
"""
|
||||
Test that the Private Key instructions for sharing
|
||||
|
@ -396,14 +389,15 @@ class GuiBaseTest(unittest.TestCase):
|
|||
self.assertFalse(tab.get_mode().server_status.url.isVisible())
|
||||
self.assertFalse(tab.get_mode().server_status.url_description.isVisible())
|
||||
self.assertFalse(tab.get_mode().server_status.url_instructions.isVisible())
|
||||
self.assertFalse(tab.get_mode().server_status.private_key.isVisible())
|
||||
self.assertFalse(
|
||||
tab.get_mode().server_status.client_auth_instructions.isVisible()
|
||||
)
|
||||
self.assertFalse(
|
||||
tab.get_mode().server_status.copy_client_auth_button.isVisible()
|
||||
)
|
||||
|
||||
self.assertFalse(
|
||||
tab.get_mode().server_status.show_client_auth_qr_code_button.isVisible()
|
||||
)
|
||||
|
||||
def web_server_is_stopped(self, tab):
|
||||
"""Test that the web server also stopped"""
|
||||
|
|
|
@ -41,7 +41,6 @@ class TestChat(GuiBaseTest):
|
|||
self.url_shown(tab)
|
||||
self.have_copy_url_button(tab)
|
||||
self.have_show_url_qr_code_button(tab)
|
||||
self.private_key_shown(tab)
|
||||
self.client_auth_instructions_shown(tab)
|
||||
self.have_show_client_auth_qr_code_button(tab)
|
||||
self.server_status_indicator_says_started(tab)
|
||||
|
|
|
@ -115,7 +115,6 @@ class TestReceive(GuiBaseTest):
|
|||
self.have_copy_url_button(tab)
|
||||
self.have_show_url_qr_code_button(tab)
|
||||
self.client_auth_instructions_shown(tab)
|
||||
self.private_key_shown(tab)
|
||||
self.have_show_client_auth_qr_code_button(tab)
|
||||
self.server_status_indicator_says_started(tab)
|
||||
|
||||
|
|
|
@ -186,7 +186,6 @@ class TestShare(GuiBaseTest):
|
|||
self.url_shown(tab)
|
||||
self.have_copy_url_button(tab)
|
||||
self.have_show_url_qr_code_button(tab)
|
||||
self.private_key_shown(tab)
|
||||
self.client_auth_instructions_shown(tab)
|
||||
self.have_show_client_auth_qr_code_button(tab)
|
||||
self.server_status_indicator_says_started(tab)
|
||||
|
|
|
@ -51,7 +51,6 @@ class TestWebsite(GuiBaseTest):
|
|||
self.have_copy_url_button(tab)
|
||||
self.have_show_url_qr_code_button(tab)
|
||||
self.client_auth_instructions_shown(tab)
|
||||
self.private_key_shown(tab)
|
||||
self.have_show_client_auth_qr_code_button(tab)
|
||||
self.server_status_indicator_says_started(tab)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue