Skip to content

Commit 7eaf5a8

Browse files
pawieczJenySadadia
authored andcommitted
tests/unit_tests: sync unit tests after model changes (retry_counter 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#2927 [1] https://github.com/kernelci/kernelci-core/blob/ee64d7e4cdaeef2176d9755c9112ff97c8ad8e3a/kernelci/api/models.py#L184 Signed-off-by: Paweł Wieczorek <pawiecz@collabora.com>
1 parent ba1374c commit 7eaf5a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit_tests/test_node_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def test_create_node_endpoint(mock_db_create, mock_publish_cloudevent,
8888
'updated',
8989
'user_groups',
9090
'processed_by_kcidb_bridge',
91+
'retry_counter',
9192
}
9293

9394

@@ -249,6 +250,7 @@ def test_get_node_by_id_endpoint(mock_db_find_by_id,
249250
'updated',
250251
'user_groups',
251252
'processed_by_kcidb_bridge',
253+
'retry_counter',
252254
}
253255

254256

0 commit comments

Comments
 (0)