mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Added test_individual_files, test_individual_files_without_autostop_sharing
This commit is contained in:
parent
e49786451a
commit
b681b53420
@ -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…
Reference in New Issue
Block a user