mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Remove all the extra QApplications
This commit is contained in:
parent
8b4ef277b5
commit
f0dd76f681
@ -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'''
|
||||
|
@ -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'''
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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'''
|
||||
|
@ -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'''
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user