mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 12:12:56 -03:00
418252f7c6
This reverts commit 43eda6b9df
.
38 lines
913 B
Python
38 lines
913 B
Python
#!/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 = {
|
|
"receive_allow_receiver_shutdown": True
|
|
}
|
|
cls.gui = GuiBaseTest.set_up(test_settings)
|
|
|
|
@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()
|