Skip to content

Commit 174ffd0

Browse files
authored
Add a test fixture for testing incoming transfer without eventType field (#388)
Makes sure the issue of #350 does not reoccur
1 parent ff4350d commit 174ffd0

2 files changed

Lines changed: 100 additions & 0 deletions

File tree

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"id": "756ce232-a67d-4d85-a431-57483426450a",
3+
"timestamp": "2025-10-13T12:43:03.988+0000",
4+
"title": "MSCI EM USD (Acc)",
5+
"icon": "logos/IE00BTJRMP35/v2",
6+
"subtitle": "Aktien erhalten",
7+
"action": {
8+
"type": "timelineDetail",
9+
"payload": "756ce232-a67d-4d85-a431-57483426450a"
10+
},
11+
"cashAccountNumber": "123456789",
12+
"hidden": false,
13+
"deleted": false,
14+
"source": "timelineActivity",
15+
"details": {
16+
"id": "756ce232-a67d-4d85-a431-57483426450a",
17+
"sections": [
18+
{
19+
"type": "header",
20+
"title": "You received 7 shares",
21+
"data": {
22+
"status": "executed",
23+
"icon": "logos/IE00BTJRMP35/v2",
24+
"timestamp": "2025-10-13T12:43:03.988647Z"
25+
}
26+
},
27+
{
28+
"type": "table",
29+
"title": "Overview",
30+
"data": [
31+
{
32+
"title": "Status",
33+
"style": "plain",
34+
"detail": {
35+
"type": "status",
36+
"text": "Completed",
37+
"functionalStyle": "EXECUTED"
38+
}
39+
},
40+
{
41+
"title": "Asset",
42+
"style": "plain",
43+
"detail": {
44+
"type": "text",
45+
"text": "MSCI EM USD (Acc)"
46+
}
47+
},
48+
{
49+
"title": "Action",
50+
"style": "plain",
51+
"detail": {
52+
"type": "text",
53+
"text": "Securities transfer"
54+
}
55+
}
56+
]
57+
},
58+
{
59+
"type": "table",
60+
"title": "Transaction",
61+
"data": [
62+
{
63+
"title": "Shares",
64+
"style": "plain",
65+
"detail": {
66+
"type": "text",
67+
"text": "7"
68+
}
69+
},
70+
{
71+
"title": "Fee",
72+
"style": "plain",
73+
"detail": {
74+
"type": "text",
75+
"text": "Free"
76+
}
77+
}
78+
]
79+
}
80+
]
81+
}
82+
}

tests/test_events.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,24 @@
17731773
}
17741774
],
17751775
},
1776+
{
1777+
"filename": "securities_transfer_incoming_no_eventType.json",
1778+
"event_type": PPEventType.TRANSFER_IN,
1779+
"title": "MSCI EM USD (Acc)",
1780+
"isin": "IE00BTJRMP35",
1781+
"shares": 7,
1782+
"value": 0,
1783+
"transactions": [
1784+
{
1785+
"Datum": "2025-10-13T12:43:03",
1786+
"Typ": "Umbuchung (Eingang)",
1787+
"Wert": 0,
1788+
"Notiz": "MSCI EM USD (Acc)",
1789+
"ISIN": "IE00BTJRMP35",
1790+
"Stück": 7.0,
1791+
}
1792+
],
1793+
},
17761794
{
17771795
"filename": "sell_stop.json",
17781796
"event_type": ConditionalEventType.TRADE_INVOICE,

0 commit comments

Comments
 (0)