mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 18:05:05 -04:00
Remove unique settings file per test, because they don't run concurrently anymore
This commit is contained in:
parent
0176535e50
commit
b749fc8d12
34 changed files with 41 additions and 40 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue