"""Tests for ows-timed-release Model.""" from owsrequest import test_utils from owsrequest import request from product.constants import service_name from product.models import ows_timed_release def test_delete_timed_release(monkeypatch, test_product): """Test DELETE request for timed release.""" call_specs = [{ 'service': service_name.OWS_TIMED_RELEASE, 'path': f'/scheduled_update/{test_product}', 'status': 200 }] monkeypatch.setattr( request, 'delete', test_utils.mock_ows_requests(call_specs)) result = ows_timed_release.delete_timed_release(test_product) assert result.status == 200