Skip to content

Commit

Permalink
test_node_handler.py: Fix missing field name
Browse files Browse the repository at this point in the history
Fixing for now, just by duplicating field name as it is
in models.py
Actually i dont understand, why we have to maintain in this test
separate list of node field names, while we have models.py
in kernelci-core. Either this test should get list of fields from
model, or it should not exist.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Apr 2, 2024
1 parent f52efbd commit ce0b8e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit_tests/test_node_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_create_node_endpoint(mock_db_create, mock_publish_cloudevent,
'data',
'debug',
'group',
'jobfilter',
'holdoff',
'kind',
'name',
Expand Down Expand Up @@ -222,6 +223,7 @@ def test_get_node_by_id_endpoint(mock_db_find_by_id,
'data',
'debug',
'group',
'jobfilter',
'holdoff',
'kind',
'name',
Expand Down

0 comments on commit ce0b8e5

Please sign in to comment.