-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
81 lines (65 loc) · 1.88 KB
/
conftest.py
File metadata and controls
81 lines (65 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import pytest
from mpt_api_client.http import AsyncHTTPClient, HTTPClient
from mpt_api_client.models import Model
API_TOKEN = "test-token"
API_URL = "https://api.example.com"
class DummyModel(Model):
"""Dummy resource for testing."""
@pytest.fixture
def http_client():
return HTTPClient(base_url=API_URL, api_token=API_TOKEN)
@pytest.fixture
def async_http_client():
return AsyncHTTPClient(base_url=API_URL, api_token=API_TOKEN)
@pytest.fixture
def attachment_data():
return {
"id": "ATT-001",
"name": "attachment.pdf",
"type": "Document",
"size": 2048,
"description": "Attachment description",
"contentType": "application/pdf",
}
@pytest.fixture
def document_inherited_data():
return {
"id": "DOC-001",
"name": "User Guide",
"type": "Document",
"description": "User guide document",
"status": "Active",
"filename": "guide.pdf",
"size": 4096,
"contentType": "application/pdf",
"url": "https://example.com/guide.pdf",
}
@pytest.fixture
def media_inherited_data():
return {
"id": "MED-001",
"name": "Screenshot",
"type": "Image",
"description": "Product screenshot",
"status": "Active",
"filename": "screenshot.png",
"size": 512000,
"contentType": "image/png",
"displayOrder": 1,
"url": "https://example.com/screenshot.png",
}
@pytest.fixture
def term_variant_inherited_data():
return {
"id": "TRV-001",
"name": "English Variant",
"type": "PDF",
"assetUrl": "https://example.com/file.pdf",
"languageCode": "en-US",
"description": "English language variant",
"status": "Active",
"filename": "terms.pdf",
"size": 2048,
"contentType": "application/pdf",
"fileId": "FILE-001",
}