@@ -12,34 +12,27 @@ def sample_email_config():
1212 from sap_cloud_sdk .outputmanagement .models import EmailConfiguration
1313
1414 return EmailConfiguration (
15- to = [ "recipient@example.com" ] ,
16- subject = "Test Email " ,
17- body = "This is a test email body"
15+ email_notification_template_key = "TEST_TEMPLATE" ,
16+ email_template_language = "en " ,
17+ to = [ "recipient@example.com" ]
1818 )
1919
2020
2121@pytest .fixture
2222def sample_attachment ():
2323 """Provide a sample attachment for testing."""
24- from sap_cloud_sdk .outputmanagement .models import AttachmentConfig
24+ from sap_cloud_sdk .outputmanagement .models import AttachmentConfig , FormConfiguration
2525
26- return AttachmentConfig (
27- filename = "test-document.pdf" ,
28- content_type = "application/pdf" ,
29- content = b"Sample PDF content"
30- )
26+ form_config = FormConfiguration (form_id = "test-form" )
27+ return AttachmentConfig (form_configuration = form_config )
3128
3229
3330@pytest .fixture
3431def sample_output_response ():
3532 """Provide a sample output response for testing."""
3633 from sap_cloud_sdk .outputmanagement .models import OutputResponse
3734
38- return OutputResponse (
39- request_id = "test-req-123" ,
40- status = "SUCCESS" ,
41- message = "Test output generated successfully"
42- )
35+ return OutputResponse (output_request_id = "test-req-123" )
4336
4437
4538@pytest .fixture
@@ -48,10 +41,8 @@ def sample_pre_generated_attachment():
4841 from sap_cloud_sdk .outputmanagement .models import PreGeneratedAttachment
4942
5043 return PreGeneratedAttachment (
51- object_key = "attachments/test-file.pdf" ,
52- filename = "test-file.pdf" ,
53- content_type = "application/pdf" ,
54- size = 1024
44+ url = "https://dms.example.com/attachments/test-file.pdf" ,
45+ source = "DMS"
5546 )
5647
5748
0 commit comments