Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgerjohnson committed Mar 12, 2024
1 parent baa67a4 commit 5f7cfef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def test_exporter_readiness(self):
"""Tests that the readiness path invokes return200
with the environ and HTTP response callable"""
environ = {'PATH_INFO': '/readiness'}
with mock.patch('liveness.return200') as mocked:
with mock.patch('exporter.return200') as mocked:
liveness(environ, self.start_fn_mock)
mocked.assert_called_once_with(environ, self.start_fn_mock)

def test_exporter_liveness(self):
"""Tests that the liveness path invokes return200
with the environ and HTTP response callable"""
environ = {'PATH_INFO': '/liveness'}
with mock.patch('liveness.return200') as mocked:
with mock.patch('exporter.return200') as mocked:
liveness(environ, self.start_fn_mock)
mocked.assert_called_once_with(environ, self.start_fn_mock)

Expand Down

0 comments on commit 5f7cfef

Please sign in to comment.