"""Tests for handlers.""" from unittest.mock import MagicMock from ows_product_physical.logic import product_physical def test_handler_healthcheck( monkeypatch, client, fixture_response_ok, valid_get_header): """Test healthcheck handler.""" monkeypatch.setattr( product_physical, 'healthcheck', value=MagicMock( return_value=fixture_response_ok)) result = client.get('/hello', headers=valid_get_header) assert result.status_code == 200 assert product_physical.healthcheck.called