Remove unique settings file per test, because they don't run concurrently anymore

This commit is contained in:
Miguel Jacq 2018-10-17 16:31:51 +11:00
parent daf11542c7
commit ef01da3fad
34 changed files with 41 additions and 40 deletions

View file

@ -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