mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-11 07:40:26 -04:00
More coverage such as 404 ratelimit, large file tests. Standardise some method naming conventions and other fixes/cleanup
This commit is contained in:
parent
668aa66323
commit
b2a7b0c929
20 changed files with 360 additions and 87 deletions
20
tests/local_onionshare_404_triggers_ratelimit_test.py
Normal file
20
tests/local_onionshare_404_triggers_ratelimit_test.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
import unittest
|
||||
|
||||
from .GuiShareTest import GuiShareTest
|
||||
|
||||
class Local404RateLimitTest(unittest.TestCase, GuiShareTest):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
test_settings = {
|
||||
"close_after_first_download": False
|
||||
}
|
||||
cls.gui = GuiShareTest.set_up(test_settings, 'Local404RateLimitTest')
|
||||
|
||||
def test_gui(self):
|
||||
self.run_all_common_setup_tests()
|
||||
self.run_all_share_mode_tests(False, True)
|
||||
self.hit_404(False)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Loading…
Add table
Add a link
Reference in a new issue