2018-10-15 22:01:44 -04:00
|
|
|
#!/usr/bin/env python3
|
2019-01-16 00:52:42 -05:00
|
|
|
import pytest
|
2018-10-15 22:01:44 -04:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
from .GuiShareTest import GuiShareTest
|
|
|
|
|
2019-10-13 00:01:25 -04:00
|
|
|
|
2019-05-24 16:38:41 -04:00
|
|
|
class Local401RateLimitTest(unittest.TestCase, GuiShareTest):
|
2018-10-15 22:01:44 -04:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2019-10-13 00:01:25 -04:00
|
|
|
test_settings = {"close_after_first_download": False}
|
2018-10-17 01:31:51 -04:00
|
|
|
cls.gui = GuiShareTest.set_up(test_settings)
|
2018-10-15 22:01:44 -04:00
|
|
|
|
2018-10-16 00:53:35 -04:00
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
GuiShareTest.tear_down()
|
|
|
|
|
2019-01-16 00:52:42 -05:00
|
|
|
@pytest.mark.gui
|
2019-10-13 00:01:25 -04:00
|
|
|
@pytest.mark.skipif(pytest.__version__ < "2.9", reason="requires newer pytest")
|
2018-10-15 22:01:44 -04:00
|
|
|
def test_gui(self):
|
|
|
|
self.run_all_common_setup_tests()
|
|
|
|
self.run_all_share_mode_tests(False, True)
|
2019-05-24 16:38:41 -04:00
|
|
|
self.hit_401(False)
|
2018-10-15 22:01:44 -04:00
|
|
|
|
2019-10-13 00:01:25 -04:00
|
|
|
|
2018-10-15 22:01:44 -04:00
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|