summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2018-10-17 16:31:51 +1100
committerMiguel Jacq <mig@mig5.net>2018-10-17 16:31:51 +1100
commitb749fc8d12c18aba91adcaf62154a63d7ebd6af3 (patch)
tree6bf509ad55fa9d920ec6f1d79b9376f2fbc63690 /tests
parent0176535e5085f8aca451b2b1dc53c012e07c39a8 (diff)
downloadonionshare-b749fc8d12c18aba91adcaf62154a63d7ebd6af3.tar.gz
onionshare-b749fc8d12c18aba91adcaf62154a63d7ebd6af3.zip
Remove unique settings file per test, because they don't run concurrently anymore
Diffstat (limited to 'tests')
-rw-r--r--tests/GuiBaseTest.py7
-rw-r--r--tests/SettingsGuiBaseTest.py6
-rw-r--r--tests/TorGuiBaseTest.py6
-rw-r--r--tests/local_onionshare_404_public_mode_skips_ratelimit_test.py2
-rw-r--r--tests/local_onionshare_404_triggers_ratelimit_test.py2
-rw-r--r--tests/local_onionshare_open_settings_dialog_test.py2
-rw-r--r--tests/local_onionshare_quitting_during_share_prompts_warning_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_sender_closed_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_timer_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py (renamed from tests/local_onionshare_receive_mode_public_mode_upload_non_writable_dir_test.py)2
-rw-r--r--tests/local_onionshare_receive_mode_upload_public_mode_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_test.py2
-rw-r--r--tests/local_onionshare_settings_dialog_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_public_mode_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_stay_open_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_test.py2
-rw-r--r--tests/local_onionshare_share_mode_large_download_test.py2
-rw-r--r--tests/local_onionshare_share_mode_slug_persistent_test.py2
-rw-r--r--tests/local_onionshare_share_mode_timer_test.py2
-rw-r--r--tests/local_onionshare_share_mode_timer_too_short_test.py2
-rw-r--r--tests/local_onionshare_share_mode_unreadable_file_test.py2
-rw-r--r--tests/onionshare_790_cancel_on_second_share_test.py2
-rw-r--r--tests/onionshare_receive_mode_upload_public_mode_test.py2
-rw-r--r--tests/onionshare_receive_mode_upload_test.py2
-rw-r--r--tests/onionshare_share_mode_cancel_share_test.py2
-rw-r--r--tests/onionshare_share_mode_download_public_mode_test.py2
-rw-r--r--tests/onionshare_share_mode_download_stay_open_test.py2
-rw-r--r--tests/onionshare_share_mode_download_test.py2
-rw-r--r--tests/onionshare_share_mode_persistent_test.py2
-rw-r--r--tests/onionshare_share_mode_stealth_test.py2
-rw-r--r--tests/onionshare_share_mode_timer_test.py2
-rw-r--r--tests/onionshare_share_mode_tor_connection_killed_test.py2
-rw-r--r--tests/onionshare_share_mode_v2_onion_test.py2
34 files changed, 41 insertions, 40 deletions
diff --git a/tests/GuiBaseTest.py b/tests/GuiBaseTest.py
index 0e570412..af5f1944 100644
--- a/tests/GuiBaseTest.py
+++ b/tests/GuiBaseTest.py
@@ -19,7 +19,7 @@ from onionshare_gui.mode.receive_mode import ReceiveMode
class GuiBaseTest(object):
@staticmethod
- def set_up(test_settings, settings_filename):
+ def set_up(test_settings):
'''Create GUI with given settings'''
# Create our test file
testfile = open('/tmp/test.txt', 'w')
@@ -51,9 +51,9 @@ class GuiBaseTest(object):
app = OnionShare(common, testonion, True, 0)
web = Web(common, False, True)
- open('/tmp/{}.json'.format(settings_filename), 'w').write(json.dumps(test_settings))
+ open('/tmp/settings.json', 'w').write(json.dumps(test_settings))
- gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt', '/tmp/testdir'], '/tmp/{}.json'.format(settings_filename), True)
+ gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt', '/tmp/testdir'], '/tmp/settings.json', True)
return gui
@staticmethod
@@ -61,6 +61,7 @@ class GuiBaseTest(object):
'''Clean up after tests'''
try:
os.remove('/tmp/test.txt')
+ os.remove('/tmp/settings.json')
os.remove('/tmp/largefile')
shutil.rmtree('/tmp/OnionShare')
shutil.rmtree('/tmp/testdir')
diff --git a/tests/SettingsGuiBaseTest.py b/tests/SettingsGuiBaseTest.py
index dac074fc..195e7933 100644
--- a/tests/SettingsGuiBaseTest.py
+++ b/tests/SettingsGuiBaseTest.py
@@ -13,7 +13,7 @@ from onionshare_gui.settings_dialog import SettingsDialog
class SettingsGuiBaseTest(object):
@staticmethod
- def set_up(test_settings, settings_filename):
+ def set_up(test_settings):
'''Create the GUI'''
# Create our test file
testfile = open('/tmp/test.txt', 'w')
@@ -37,9 +37,9 @@ class SettingsGuiBaseTest(object):
if key not in test_settings:
test_settings[key] = val
- open('/tmp/{}.json'.format(settings_filename), 'w').write(json.dumps(test_settings))
+ open('/tmp/settings.json', 'w').write(json.dumps(test_settings))
- gui = SettingsDialog(common, testonion, qtapp, '/tmp/{}.json'.format(settings_filename), True)
+ gui = SettingsDialog(common, testonion, qtapp, '/tmp/settings.json', True)
return gui
diff --git a/tests/TorGuiBaseTest.py b/tests/TorGuiBaseTest.py
index 2c88bb94..9a0bda3e 100644
--- a/tests/TorGuiBaseTest.py
+++ b/tests/TorGuiBaseTest.py
@@ -18,7 +18,7 @@ from .GuiBaseTest import GuiBaseTest
class TorGuiBaseTest(GuiBaseTest):
@staticmethod
- def set_up(test_settings, settings_filename):
+ def set_up(test_settings):
'''Create GUI with given settings'''
# Create our test file
testfile = open('/tmp/test.txt', 'w')
@@ -51,9 +51,9 @@ class TorGuiBaseTest(GuiBaseTest):
app = OnionShare(common, testonion, False, 0)
web = Web(common, False, False)
- open('/tmp/{}.json'.format(settings_filename), 'w').write(json.dumps(test_settings))
+ open('/tmp/settings.json', 'w').write(json.dumps(test_settings))
- gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt', '/tmp/testdir'], '/tmp/{}.json'.format(settings_filename), False)
+ gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt', '/tmp/testdir'], '/tmp/settings.json', False)
return gui
def history_indicator(self, mode, public_mode):
diff --git a/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py b/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
index c4c271b8..11feb6f0 100644
--- a/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
+++ b/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
@@ -10,7 +10,7 @@ class Local404PublicModeRateLimitTest(unittest.TestCase, GuiShareTest):
"close_after_first_download": False,
"public_mode": True
}
- cls.gui = GuiShareTest.set_up(test_settings, 'Local404PublicModeRateLimitTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_404_triggers_ratelimit_test.py b/tests/local_onionshare_404_triggers_ratelimit_test.py
index 8f9caa7c..ad49c3f8 100644
--- a/tests/local_onionshare_404_triggers_ratelimit_test.py
+++ b/tests/local_onionshare_404_triggers_ratelimit_test.py
@@ -9,7 +9,7 @@ class Local404RateLimitTest(unittest.TestCase, GuiShareTest):
test_settings = {
"close_after_first_download": False
}
- cls.gui = GuiShareTest.set_up(test_settings, 'Local404RateLimitTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_open_settings_dialog_test.py b/tests/local_onionshare_open_settings_dialog_test.py
index b012b6a2..61e66be2 100644
--- a/tests/local_onionshare_open_settings_dialog_test.py
+++ b/tests/local_onionshare_open_settings_dialog_test.py
@@ -9,7 +9,7 @@ class LocalOpenSettingsDialogTest(unittest.TestCase, GuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalOpenSettingsDialogTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_quitting_during_share_prompts_warning_test.py b/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
index b33b991c..d2fe4986 100644
--- a/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
+++ b/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
@@ -10,7 +10,7 @@ class LocalQuittingDuringSharePromptsWarningTest(unittest.TestCase, GuiShareTest
test_settings = {
"close_after_first_download": False
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalQuittingDuringSharePromptsWarningTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_sender_closed_test.py b/tests/local_onionshare_receive_mode_sender_closed_test.py
index 3a0d8617..e177d2ef 100644
--- a/tests/local_onionshare_receive_mode_sender_closed_test.py
+++ b/tests/local_onionshare_receive_mode_sender_closed_test.py
@@ -9,7 +9,7 @@ class LocalReceiveModeSenderClosedTest(unittest.TestCase, GuiReceiveTest):
test_settings = {
"receive_allow_receiver_shutdown": True
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceiveModeSenderClosedTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_timer_test.py b/tests/local_onionshare_receive_mode_timer_test.py
index 039acff4..88002f94 100644
--- a/tests/local_onionshare_receive_mode_timer_test.py
+++ b/tests/local_onionshare_receive_mode_timer_test.py
@@ -10,7 +10,7 @@ class LocalReceiveModeTimerTest(unittest.TestCase, GuiReceiveTest):
"public_mode": False,
"shutdown_timeout": True,
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceiveModeTimerTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py b/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
index b6f06b08..7d7b2780 100644
--- a/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
+++ b/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
@@ -9,7 +9,7 @@ class LocalReceiveModeUnwritableTest(unittest.TestCase, GuiReceiveTest):
test_settings = {
"receive_allow_receiver_shutdown": True
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceiveModeUnwritableTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_public_mode_upload_non_writable_dir_test.py b/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py
index 2bffb4dd..cdc4e62a 100644
--- a/tests/local_onionshare_receive_mode_public_mode_upload_non_writable_dir_test.py
+++ b/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py
@@ -10,7 +10,7 @@ class LocalReceivePublicModeUnwritableTest(unittest.TestCase, GuiReceiveTest):
"public_mode": True,
"receive_allow_receiver_shutdown": True
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceivePublicModeUnwritableTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_upload_public_mode_test.py b/tests/local_onionshare_receive_mode_upload_public_mode_test.py
index 654895ca..bedb7ae2 100644
--- a/tests/local_onionshare_receive_mode_upload_public_mode_test.py
+++ b/tests/local_onionshare_receive_mode_upload_public_mode_test.py
@@ -10,7 +10,7 @@ class LocalReceiveModePublicModeTest(unittest.TestCase, GuiReceiveTest):
"public_mode": True,
"receive_allow_receiver_shutdown": True
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceiveModePublicModeTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_receive_mode_upload_test.py b/tests/local_onionshare_receive_mode_upload_test.py
index c06d30cd..82baf3fd 100644
--- a/tests/local_onionshare_receive_mode_upload_test.py
+++ b/tests/local_onionshare_receive_mode_upload_test.py
@@ -9,7 +9,7 @@ class LocalReceiveModeTest(unittest.TestCase, GuiReceiveTest):
test_settings = {
"receive_allow_receiver_shutdown": True
}
- cls.gui = GuiReceiveTest.set_up(test_settings, 'LocalReceiveModeTest')
+ cls.gui = GuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_settings_dialog_test.py b/tests/local_onionshare_settings_dialog_test.py
index a328f53b..6d8923b6 100644
--- a/tests/local_onionshare_settings_dialog_test.py
+++ b/tests/local_onionshare_settings_dialog_test.py
@@ -13,7 +13,7 @@ class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest):
"no_bridges": False,
"tor_bridges_use_custom_bridges": "Bridge 1.2.3.4:56 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\nBridge 5.6.7.8:910 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\nBridge 11.12.13.14:1516 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n",
}
- cls.gui = SettingsGuiBaseTest.set_up(test_settings, 'settings')
+ cls.gui = SettingsGuiBaseTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_download_public_mode_test.py b/tests/local_onionshare_share_mode_download_public_mode_test.py
index f1c29990..d6dff13a 100644
--- a/tests/local_onionshare_share_mode_download_public_mode_test.py
+++ b/tests/local_onionshare_share_mode_download_public_mode_test.py
@@ -9,7 +9,7 @@ class LocalShareModePublicModeTest(unittest.TestCase, GuiShareTest):
test_settings = {
"public_mode": True,
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModePublicModeTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_download_stay_open_test.py b/tests/local_onionshare_share_mode_download_stay_open_test.py
index af02e841..54d6de51 100644
--- a/tests/local_onionshare_share_mode_download_stay_open_test.py
+++ b/tests/local_onionshare_share_mode_download_stay_open_test.py
@@ -9,7 +9,7 @@ class LocalShareModeStayOpenTest(unittest.TestCase, GuiShareTest):
test_settings = {
"close_after_first_download": False,
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeStayOpenTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_download_test.py b/tests/local_onionshare_share_mode_download_test.py
index 53db0296..ff182740 100644
--- a/tests/local_onionshare_share_mode_download_test.py
+++ b/tests/local_onionshare_share_mode_download_test.py
@@ -8,7 +8,7 @@ class LocalShareModeTest(unittest.TestCase, GuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_large_download_test.py b/tests/local_onionshare_share_mode_large_download_test.py
index 5f5de888..46e6df28 100644
--- a/tests/local_onionshare_share_mode_large_download_test.py
+++ b/tests/local_onionshare_share_mode_large_download_test.py
@@ -8,7 +8,7 @@ class LocalShareModeLargeDownloadTest(unittest.TestCase, GuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeLargeDownloadTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_slug_persistent_test.py b/tests/local_onionshare_share_mode_slug_persistent_test.py
index c273fbda..a1cc6972 100644
--- a/tests/local_onionshare_share_mode_slug_persistent_test.py
+++ b/tests/local_onionshare_share_mode_slug_persistent_test.py
@@ -12,7 +12,7 @@ class LocalShareModePersistentSlugTest(unittest.TestCase, GuiShareTest):
"save_private_key": True,
"close_after_first_download": False,
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModePersistentSlugTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_timer_test.py b/tests/local_onionshare_share_mode_timer_test.py
index 394dec21..41a6268d 100644
--- a/tests/local_onionshare_share_mode_timer_test.py
+++ b/tests/local_onionshare_share_mode_timer_test.py
@@ -10,7 +10,7 @@ class LocalShareModeTimerTest(unittest.TestCase, GuiShareTest):
"public_mode": False,
"shutdown_timeout": True,
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeTimerTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_timer_too_short_test.py b/tests/local_onionshare_share_mode_timer_too_short_test.py
index 16153c3e..41c30883 100644
--- a/tests/local_onionshare_share_mode_timer_too_short_test.py
+++ b/tests/local_onionshare_share_mode_timer_too_short_test.py
@@ -11,7 +11,7 @@ class LocalShareModeTimerTooShortTest(unittest.TestCase, GuiShareTest):
"public_mode": False,
"shutdown_timeout": True,
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeTimerTooShortTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/local_onionshare_share_mode_unreadable_file_test.py b/tests/local_onionshare_share_mode_unreadable_file_test.py
index 0e0970ea..38a0e847 100644
--- a/tests/local_onionshare_share_mode_unreadable_file_test.py
+++ b/tests/local_onionshare_share_mode_unreadable_file_test.py
@@ -8,7 +8,7 @@ class LocalShareModeUnReadableFileTest(unittest.TestCase, GuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = GuiShareTest.set_up(test_settings, 'LocalShareModeUnReadableFileTest')
+ cls.gui = GuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_790_cancel_on_second_share_test.py b/tests/onionshare_790_cancel_on_second_share_test.py
index dce84f62..b144edf3 100644
--- a/tests/onionshare_790_cancel_on_second_share_test.py
+++ b/tests/onionshare_790_cancel_on_second_share_test.py
@@ -11,7 +11,7 @@ class ShareModeCancelSecondShareTest(unittest.TestCase, TorGuiShareTest):
test_settings = {
"close_after_first_download": True
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeCancelSecondShareTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_receive_mode_upload_public_mode_test.py b/tests/onionshare_receive_mode_upload_public_mode_test.py
index 048186c3..275e5953 100644
--- a/tests/onionshare_receive_mode_upload_public_mode_test.py
+++ b/tests/onionshare_receive_mode_upload_public_mode_test.py
@@ -11,7 +11,7 @@ class ReceiveModeTest(unittest.TestCase, TorGuiReceiveTest):
"public_mode": True,
"receive_allow_receiver_shutdown": True
}
- cls.gui = TorGuiReceiveTest.set_up(test_settings, 'ReceiveModeTest')
+ cls.gui = TorGuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_receive_mode_upload_test.py b/tests/onionshare_receive_mode_upload_test.py
index d3965d59..f9914659 100644
--- a/tests/onionshare_receive_mode_upload_test.py
+++ b/tests/onionshare_receive_mode_upload_test.py
@@ -10,7 +10,7 @@ class ReceiveModeTest(unittest.TestCase, TorGuiReceiveTest):
test_settings = {
"receive_allow_receiver_shutdown": True
}
- cls.gui = TorGuiReceiveTest.set_up(test_settings, 'ReceiveModeTest')
+ cls.gui = TorGuiReceiveTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_cancel_share_test.py b/tests/onionshare_share_mode_cancel_share_test.py
index 83a009a1..5f4d6fb3 100644
--- a/tests/onionshare_share_mode_cancel_share_test.py
+++ b/tests/onionshare_share_mode_cancel_share_test.py
@@ -9,7 +9,7 @@ class ShareModeCancelTest(unittest.TestCase, TorGuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeCancelTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_download_public_mode_test.py b/tests/onionshare_share_mode_download_public_mode_test.py
index 8c5740c5..672603ce 100644
--- a/tests/onionshare_share_mode_download_public_mode_test.py
+++ b/tests/onionshare_share_mode_download_public_mode_test.py
@@ -10,7 +10,7 @@ class ShareModePublicModeTest(unittest.TestCase, TorGuiShareTest):
test_settings = {
"public_mode": True,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModePublicModeTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_download_stay_open_test.py b/tests/onionshare_share_mode_download_stay_open_test.py
index 56ac924d..e7e64083 100644
--- a/tests/onionshare_share_mode_download_stay_open_test.py
+++ b/tests/onionshare_share_mode_download_stay_open_test.py
@@ -10,7 +10,7 @@ class ShareModeStayOpenTest(unittest.TestCase, TorGuiShareTest):
test_settings = {
"close_after_first_download": False,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeStayOpenTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_download_test.py b/tests/onionshare_share_mode_download_test.py
index 125909d0..7d414e5d 100644
--- a/tests/onionshare_share_mode_download_test.py
+++ b/tests/onionshare_share_mode_download_test.py
@@ -9,7 +9,7 @@ class ShareModeTest(unittest.TestCase, TorGuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_persistent_test.py b/tests/onionshare_share_mode_persistent_test.py
index 3f103a1a..86b61a81 100644
--- a/tests/onionshare_share_mode_persistent_test.py
+++ b/tests/onionshare_share_mode_persistent_test.py
@@ -14,7 +14,7 @@ class ShareModePersistentSlugTest(unittest.TestCase, TorGuiShareTest):
"save_private_key": True,
"close_after_first_download": False,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModePersistentSlugTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_stealth_test.py b/tests/onionshare_share_mode_stealth_test.py
index 78e87e9e..b16669e6 100644
--- a/tests/onionshare_share_mode_stealth_test.py
+++ b/tests/onionshare_share_mode_stealth_test.py
@@ -11,7 +11,7 @@ class ShareModeStealthTest(unittest.TestCase, TorGuiShareTest):
"use_legacy_v2_onions": True,
"use_stealth": True,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeStealthTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_timer_test.py b/tests/onionshare_share_mode_timer_test.py
index 9e690ec7..a13d2d80 100644
--- a/tests/onionshare_share_mode_timer_test.py
+++ b/tests/onionshare_share_mode_timer_test.py
@@ -11,7 +11,7 @@ class ShareModeTimerTest(unittest.TestCase, TorGuiShareTest):
"public_mode": False,
"shutdown_timeout": True,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeTimerTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):
diff --git a/tests/onionshare_share_mode_tor_connection_killed_test.py b/tests/onionshare_share_mode_tor_connection_killed_test.py
index 382ed547..62513a12 100644
--- a/tests/onionshare_share_mode_tor_connection_killed_test.py
+++ b/tests/onionshare_share_mode_tor_connection_killed_test.py
@@ -9,7 +9,7 @@ class ShareModeTorConnectionKilledTest(unittest.TestCase, TorGuiShareTest):
def setUpClass(cls):
test_settings = {
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeTorConnectionKilledTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@pytest.mark.tor
def test_gui(self):
diff --git a/tests/onionshare_share_mode_v2_onion_test.py b/tests/onionshare_share_mode_v2_onion_test.py
index f06f6631..c932abf9 100644
--- a/tests/onionshare_share_mode_v2_onion_test.py
+++ b/tests/onionshare_share_mode_v2_onion_test.py
@@ -10,7 +10,7 @@ class ShareModeV2OnionTest(unittest.TestCase, TorGuiShareTest):
test_settings = {
"use_legacy_v2_onions": True,
}
- cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeV2OnionTest')
+ cls.gui = TorGuiShareTest.set_up(test_settings)
@classmethod
def tearDownClass(cls):