Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y committed Jul 24, 2024
1 parent 6ddba8d commit d9971fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions-python/extract_bb/tests/test_extract_bb.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def test_extract_bounding_box_batch(
mock_publisher.publish.return_value = mock_future

# Call the function
response = extract_bounding_box_batch()
response = extract_bounding_box_batch(None)

# Assert logs and function responses
logger_mock.init_logger.assert_called_once()
Expand Down Expand Up @@ -308,7 +308,7 @@ def test_extract_bounding_box_batch(
)
@patch("extract_bb.src.main.Logger")
def test_extract_bounding_box_batch_no_topic_name(self, logger_mock):
response = extract_bounding_box_batch()
response = extract_bounding_box_batch(None)
self.assertEqual(
response, ("PUBSUB_TOPIC_NAME environment variable not set.", 500)
)
Expand All @@ -329,5 +329,5 @@ def test_extract_bounding_box_batch_exception(
# Mock the database session to raise an exception
start_db_session_mock.side_effect = Exception("Database error")

response = extract_bounding_box_batch()
response = extract_bounding_box_batch(None)
self.assertEqual(response, ("Error while fetching datasets.", 500))

0 comments on commit d9971fe

Please sign in to comment.