Skip to content

Commit

Permalink
Update test_pod_worker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Merrell committed Dec 19, 2022
1 parent 90e860f commit 783b773
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_serverless/test_pod_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
class TestPodWorker(unittest.TestCase):
''' Tests for pod_worker '''

@patch('runpod.serverless.modules.lifecycle.LifecycleManager.heartbeat_ping')
@patch('runpod.serverless.modules.lifecycle.LifecycleManager')
def test_start_worker(self, mock_lifecycle, mock_heartbeat_ping):
def test_start_worker(self, mock_lifecycle):
'''
Tests start_worker
'''
pod_worker.start_worker()
mock_lifecycle.assert_called_once_with()
mock_heartbeat_ping.assert_called_once_with()

0 comments on commit 783b773

Please sign in to comment.