mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-16 10:01:37 -04:00
Refactor CommonTests to pass in actual Mode objects, and fix all tests. Now all ShareMode tests pass
This commit is contained in:
parent
1b1ade63da
commit
4d217e8403
7 changed files with 97 additions and 113 deletions
|
@ -171,7 +171,7 @@ class CommonTests(object):
|
|||
|
||||
def test_counter_incremented(self, mode, count):
|
||||
'''Test that the counter has incremented'''
|
||||
self.assertEquals(mode.uploads_completed, count)
|
||||
self.assertEquals(mode.history.completed_count, count)
|
||||
|
||||
def test_server_is_stopped(self, mode, stay_open):
|
||||
'''Test that the server stops when we click Stop'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue