Refactor CommonTests to pass in actual Mode objects, and fix all tests. Now all ShareMode tests pass

This commit is contained in:
Micah Lee 2018-10-07 20:37:54 -07:00
parent 1b1ade63da
commit 4d217e8403
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
7 changed files with 97 additions and 113 deletions

View file

@ -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'''