From f767268b5d158e16bd4c6ccff874ca5c2cbffe8c Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Fri, 8 Nov 2019 16:57:50 +0800 Subject: [PATCH] Remove unnecessary imports from tests --- tests2/test_gui_share.py | 19 +------------------ tests2/test_gui_tabs.py | 19 ------------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/tests2/test_gui_share.py b/tests2/test_gui_share.py index a6bd9e3b..e7accb01 100644 --- a/tests2/test_gui_share.py +++ b/tests2/test_gui_share.py @@ -1,22 +1,9 @@ import pytest -import unittest - -import json import os import requests -import shutil -import base64 import tempfile -import secrets -from PyQt5 import QtCore, QtTest, QtWidgets - -from onionshare import strings -from onionshare.common import Common -from onionshare.settings import Settings -from onionshare.onion import Onion -from onionshare.web import Web -from onionshare_gui import Application, MainWindow, GuiCommon +from PyQt5 import QtCore, QtTest from .gui_base_test import GuiBaseTest @@ -382,7 +369,3 @@ class TestShare(GuiBaseTest): def test_common_tests(self): """Run all common tests""" self.run_all_common_setup_tests() - - -if __name__ == "__main__": - unittest.main() diff --git a/tests2/test_gui_tabs.py b/tests2/test_gui_tabs.py index 0fd3feab..5423867f 100644 --- a/tests2/test_gui_tabs.py +++ b/tests2/test_gui_tabs.py @@ -1,23 +1,8 @@ import pytest -import unittest - -import json import os -import requests -import shutil -import base64 -import tempfile -import secrets from PyQt5 import QtCore, QtTest, QtWidgets -from onionshare import strings -from onionshare.common import Common -from onionshare.settings import Settings -from onionshare.onion import Onion -from onionshare.web import Web -from onionshare_gui import Application, MainWindow, GuiCommon - from .gui_base_test import GuiBaseTest @@ -338,7 +323,3 @@ class TestTabs(GuiBaseTest): QtTest.QTest.mouseClick( tab.get_mode().server_status.server_button, QtCore.Qt.LeftButton ) - - -if __name__ == "__main__": - unittest.main()