8000 Fix breaking test cases · notion-dotnet/notion-sdk-net@3a42540 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a42540

Browse files
Fix breaking test cases
1 parent 7b77b78 commit 3a42540

6 files changed

+36
-15
lines changed

Test/Notion.UnitTests/DatabasesClientTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,14 @@ public async Task DatabasePropertyObjectContainRelationProperty()
140140
{
141141
Id = "zDGa",
142142
Name = "Property",
143-
Relation = new Relation()
143+
Relation = new DualPropertyRelation()
144144
{
145145
DatabaseId = "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
146-
SyncedPropertyName = "Related to sample table (Property)",
147-
SyncedPropertyId = "VQ}{"
146+
DualProperty = new DualPropertyRelation.Data
147+
{
148+
SyncedPropertyName = "Related to sample table (Property)",
149+
SyncedPropertyId = "VQ}{"
150+
}
148151
}
149152
});
150153
}

Test/Notion.UnitTests/data/databases/DatabasePropertyObjectContainNameProperty.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@
7171
"type": "relation",
7272
"relation": {
7373
"database_id": "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
74-
"synced_property_name": "Related to sample table (Property)",
75-
"synced_property_id": "VQ}{"
74+
"type": "dual_property",
75+
"dual_property": {
76+
"synced_property_name": "Related to sample table (Property)",
77+
"synced_property_id": "VQ}{"
78+
}
7679
}
7780
},
7881
"Name": {

Test/Notion.UnitTests/data/databases/DatabasePropertyObjectContainParentProperty.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@
7171
"type": "relation",
7272
"relation": {
7373
"database_id": "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
74-
"synced_property_name": "Related to sample table (Property)",
75-
"synced_property_id": "VQ}{"
74+
"type": "dual_property",
75+
"dual_property": {
76+
"synced_property_name": "Related to sample table (Property)",
77+
"synced_property_id": "VQ}{"
78+
}
7679
}
7780
},
7881
"Name": {

Test/Notion.UnitTests/data/databases/DatabasePropertyObjectContainRelation.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@
7171
"type": "relation",
7272
"relation": {
7373
"database_id": "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
74-
"synced_property_name": "Related to sample table (Property)",
75-
"synced_property_id": "VQ}{"
74+
"type": "dual_property",
75+
"dual_property": {
76+
"synced_property_name": "Related to sample table (Property)",
77+
"synced_property_id": "VQ}{"
78+
}
7679
}
7780
},
7881
"Name": {

Test/Notion.UnitTests/data/databases/DatabaseRetrieveResponse.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@
8282
"type": "relation",
8383
"relation": {
8484
"database_id": "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
85-
"synced_property_name": "Related to sample table (Property)",
86-
"synced_property_id": "VQ}{"
85+
"type": "dual_property",
86+
"dual_property": {
87+
"synced_property_name": "Related to sample table (Property)",
88+
"synced_property_id": "VQ}{"
89+
}
8790
}
8891
},
8992
"Name": {

Test/Notion.UnitTests/data/databases/DatabasesListResponse.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@
7474
"type": "relation",
7575
"relation": {
7676
"database_id": "f86f2262-0751-40f2-8f63-e3f7a3c39fcb",
77-
"synced_property_name": "Related to sample table (Property)",
78-
"synced_property_id": "VQ}{"
77+
"type": "dual_property",
78+
"dual_property": {
79+
"synced_property_name": "Related to sample table (Property)",
80+
"synced_property_id": "VQ}{"
81+
}
7982
}
8083
},
8184
"Name": {
@@ -188,8 +191,11 @@
188191
"type": "relation",
189192
"relation": {
190193
"database_id": "f0212efc-caf6-4afc-87f6-1c06f1dfc8a1",
191-
"synced_property_name": "Property",
192-
"synced_property_id": "zDGa"
194+
"type": "dual_property",
195+
"dual_property": {
196+
"synced_property_name": "Property",
197+
"synced_property_id": "zDGa"
198+
}
193199
}
194200
},
195201
"Column 1": {

0 commit comments

Comments
 (0)
0