Remove unnecessary imports from tests

This commit is contained in:
Micah Lee 2019-11-08 16:57:50 +08:00
parent 535ade0096
commit 38a7650974
2 changed files with 1 additions and 37 deletions

View File

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

View File

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