mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 16:35:03 -04:00
Added test_individual_files, test_individual_files_without_autostop_sharing
This commit is contained in:
parent
39e4aa9b08
commit
181cda7131
1 changed files with 27 additions and 2 deletions
|
@ -473,9 +473,9 @@ class TestShare(GuiBaseTest):
|
||||||
self.close_all_tabs()
|
self.close_all_tabs()
|
||||||
|
|
||||||
@pytest.mark.gui
|
@pytest.mark.gui
|
||||||
def test_autostop_sharing(self):
|
def test_without_autostop_sharing(self):
|
||||||
"""
|
"""
|
||||||
Autostop sharing after first download
|
Disable autostop sharing after first download
|
||||||
"""
|
"""
|
||||||
tab = self.new_share_tab()
|
tab = self.new_share_tab()
|
||||||
tab.get_mode().autostop_sharing_checkbox.click()
|
tab.get_mode().autostop_sharing_checkbox.click()
|
||||||
|
@ -496,3 +496,28 @@ class TestShare(GuiBaseTest):
|
||||||
self.run_all_share_mode_tests(tab)
|
self.run_all_share_mode_tests(tab)
|
||||||
|
|
||||||
self.close_all_tabs()
|
self.close_all_tabs()
|
||||||
|
|
||||||
|
@pytest.mark.gui
|
||||||
|
def test_individual_files_without_autostop_sharing(self):
|
||||||
|
"""
|
||||||
|
Test downloading individual files with autostop sharing disabled
|
||||||
|
"""
|
||||||
|
tab = self.new_share_tab()
|
||||||
|
tab.get_mode().autostop_sharing_checkbox.click()
|
||||||
|
|
||||||
|
self.run_all_common_setup_tests()
|
||||||
|
self.run_all_share_mode_individual_file_tests(tab)
|
||||||
|
|
||||||
|
self.close_all_tabs()
|
||||||
|
|
||||||
|
@pytest.mark.gui
|
||||||
|
def test_individual_files(self):
|
||||||
|
"""
|
||||||
|
Test downloading individual files
|
||||||
|
"""
|
||||||
|
tab = self.new_share_tab()
|
||||||
|
|
||||||
|
self.run_all_common_setup_tests()
|
||||||
|
self.run_all_share_mode_individual_file_tests(tab)
|
||||||
|
|
||||||
|
self.close_all_tabs()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue