onionshare/tests_gui_local/onionshare_receive_mode_upload_test.py

39 lines
913 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
import sys
import unittest
import pytest
import json
from PyQt5 import QtWidgets
from onionshare.common import Common
from onionshare.web import Web
from onionshare import onion, strings
from onionshare_gui import *
from .GuiBaseTest import GuiBaseTest
class ReceiveModeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
test_settings = {
2018-09-30 21:32:18 -04:00
"receive_allow_receiver_shutdown": True
}
cls.gui = GuiBaseTest.set_up(test_settings)
2018-09-27 20:34:46 -04:00
@classmethod
def tearDownClass(cls):
GuiBaseTest.tear_down()
@pytest.mark.run(order=1)
def test_run_all_common_setup_tests(self):
GuiBaseTest.run_all_common_setup_tests(self)
@pytest.mark.run(order=2)
def test_run_all_share_mode_tests(self):
GuiBaseTest.run_all_receive_mode_tests(self, False, True)
if __name__ == "__main__":
unittest.main()