Skip to content

Commit ba1374c

Browse files
pawieczJenySadadia
authored andcommitted
tests/unit_tests: sync unit tests after model changes (processed_by_kcidb_bridge field)
Changes [0] to the model caused unit tests to get out-of-sync with its new state. Tests adjusted in this patch should be kept in sync with Node class from "kernelci/api/models.py" in "kernelci/kernelci-core" repo [1]. [0] kernelci/kernelci-core#2746 [1] https://github.com/kernelci/kernelci-core/blob/ee64d7e4cdaeef2176d9755c9112ff97c8ad8e3a/kernelci/api/models.py#L184 Signed-off-by: Paweł Wieczorek <pawiecz@collabora.com>
1 parent 24066ca commit ba1374c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit_tests/test_node_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def test_create_node_endpoint(mock_db_create, mock_publish_cloudevent,
8787
'treeid',
8888
'updated',
8989
'user_groups',
90+
'processed_by_kcidb_bridge',
9091
}
9192

9293

@@ -247,6 +248,7 @@ def test_get_node_by_id_endpoint(mock_db_find_by_id,
247248
'treeid',
248249
'updated',
249250
'user_groups',
251+
'processed_by_kcidb_bridge',
250252
}
251253

252254

0 commit comments

Comments
 (0)