Remove all the extra QApplications

This commit is contained in:
Micah Lee 2018-09-27 17:34:46 -07:00
parent 8b4ef277b5
commit f0dd76f681
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
18 changed files with 22 additions and 58 deletions

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,
@ -72,7 +70,7 @@ class OnionShareGuiTest(unittest.TestCase):
open(testsettings, 'w').write(json.dumps(test_settings))
cls.gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt'], testsettings, True)
@classmethod
def tearDownClass(cls):
'''Clean up after tests'''

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,
@ -72,7 +70,7 @@ class OnionShareGuiTest(unittest.TestCase):
open(testsettings, 'w').write(json.dumps(test_settings))
cls.gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt'], testsettings, True)
@classmethod
def tearDownClass(cls):
'''Clean up after tests'''

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
slug = ''
@ -50,7 +48,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,
@ -72,7 +70,7 @@ class OnionShareGuiTest(unittest.TestCase):
open(testsettings, 'w').write(json.dumps(test_settings))
cls.gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt'], testsettings, False)
@classmethod
def tearDownClass(cls):
'''Clean up after tests'''

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,
@ -72,7 +70,7 @@ class OnionShareGuiTest(unittest.TestCase):
open(testsettings, 'w').write(json.dumps(test_settings))
cls.gui = OnionShareGui(common, testonion, qtapp, app, ['/tmp/test.txt'], testsettings, False)
@classmethod
def tearDownClass(cls):
'''Clean up after tests'''

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": True,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
slug = ''
@ -51,7 +49,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,

View File

@ -14,8 +14,6 @@ from onionshare_gui import *
from .commontests import CommonTests
app = QtWidgets.QApplication(sys.argv)
class OnionShareGuiTest(unittest.TestCase):
'''Test the OnionShare GUI'''
@classmethod
@ -48,7 +46,7 @@ class OnionShareGuiTest(unittest.TestCase):
"control_port_port": 9051,
"downloads_dir": "/tmp/OnionShare",
"hidservauth_string": "",
"no_bridges": True,
"no_bridges": True,
"private_key": "",
"public_mode": False,
"receive_allow_receiver_shutdown": True,