Remove unneeded mock in projectordb test

This commit is contained in:
Ken Roberts 2017-01-27 06:44:11 -08:00
parent 6590033945
commit e5c5edb157

View File

@ -298,16 +298,15 @@ class TestProjectorDB(TestCase):
# THEN: Verify return was None # THEN: Verify return was None
self.assertEqual(results, None, 'Returned results should have equaled None') self.assertEqual(results, None, 'Returned results should have equaled None')
@patch.object(ProjectorDB, 'get_all_objects') def test_get_projector_all_none(self):
def test_get_projector_all_none(self, mocked_get_all_objects):
""" """
Test get_projector_all() with no projectors in db Test get_projector_all() with no projectors in db
""" """
# GIVEN: Test object with no data # GIVEN: Test object with no data
mocked_get_all_objects.return_value = None projector = self.projector
# WHEN: We retrieve the database entries # WHEN: We retrieve the database entries
results = self.projector.get_projector_all() results = projector.get_projector_all()
# THEN: Verify results is None # THEN: Verify results is None
self.assertEqual(results, [], 'Returned results should have returned an empty list') self.assertEqual(results, [], 'Returned results should have returned an empty list')