mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 21:51:32 -05:00
Remove unnecessary imports from tests
This commit is contained in:
parent
535ade0096
commit
38a7650974
@ -1,22 +1,9 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import unittest
|
|
||||||
|
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
import requests
|
import requests
|
||||||
import shutil
|
|
||||||
import base64
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import secrets
|
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtTest, QtWidgets
|
from PyQt5 import QtCore, QtTest
|
||||||
|
|
||||||
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
|
from .gui_base_test import GuiBaseTest
|
||||||
|
|
||||||
@ -382,7 +369,3 @@ class TestShare(GuiBaseTest):
|
|||||||
def test_common_tests(self):
|
def test_common_tests(self):
|
||||||
"""Run all common tests"""
|
"""Run all common tests"""
|
||||||
self.run_all_common_setup_tests()
|
self.run_all_common_setup_tests()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
@ -1,23 +1,8 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import unittest
|
|
||||||
|
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
import requests
|
|
||||||
import shutil
|
|
||||||
import base64
|
|
||||||
import tempfile
|
|
||||||
import secrets
|
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtTest, QtWidgets
|
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
|
from .gui_base_test import GuiBaseTest
|
||||||
|
|
||||||
|
|
||||||
@ -338,7 +323,3 @@ class TestTabs(GuiBaseTest):
|
|||||||
QtTest.QTest.mouseClick(
|
QtTest.QTest.mouseClick(
|
||||||
tab.get_mode().server_status.server_button, QtCore.Qt.LeftButton
|
tab.get_mode().server_status.server_button, QtCore.Qt.LeftButton
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user