)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":35133,"name":"Jan Jasek","email":"jjasek@redhat.com","username":"janjasek"},"change_message_id":"1758df0c1725b07d45a90f0cfbb2d35de53b3c02","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"38126b00_e5416e44","updated":"2024-04-04 20:40:34.000000000","message":"recheck, random failure","commit_id":"d0c8167413ce678a6dd2b6522f26ab23e1182c19"},{"author":{"_account_id":35133,"name":"Jan Jasek","email":"jjasek@redhat.com","username":"janjasek"},"change_message_id":"524660481d6b4e14e1038fa1e78cab0bca4854e8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"c1c45ed9_8e01b2c3","updated":"2024-04-04 14:29:29.000000000","message":"recheck, random timeout","commit_id":"d0c8167413ce678a6dd2b6522f26ab23e1182c19"},{"author":{"_account_id":35133,"name":"Jan Jasek","email":"jjasek@redhat.com","username":"janjasek"},"change_message_id":"08ff3c1a9fcf2df0583d61a2769919550f6ea71d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"dadc8707_3340acdf","updated":"2024-04-04 23:24:24.000000000","message":"recheck, random timeout","commit_id":"d0c8167413ce678a6dd2b6522f26ab23e1182c19"}],"openstack_dashboard/test/selenium/ui/test_hypervisors.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"f979db63d60f77521ceca7479d3dcfe675fe0eee","unresolved":true,"context_lines":[{"line_number":80,"context_line":"            \".table_column_header th\")"},{"line_number":81,"context_line":"        table_row_test_provider \u003d ("},{"line_number":82,"context_line":"            resource_provider_tab.find_elements_by_css_selector("},{"line_number":83,"context_line":"                \"#providers__row__test_provider td\"))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        want_to_check \u003d {\"VCPUs used\": p[\u0027vcpus_used\u0027],"},{"line_number":86,"context_line":"                         \"VCPUs reserved\": p[\u0027vcpus_reserved\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"6769be78_4520322e","line":83,"updated":"2024-04-04 10:22:06.000000000","message":"I would do something like:\n\ntable_providers \u003d dict(zip(table_header, table_row_test_provider))\n\nand then you can do:\n\nfor key, value in want_to_check.items():\n    assert table_providers[key] \u003d\u003d str(value)\n    \nor if you change want_to_check to already have strings in it, simply:\n\nassert table_providers \u003d\u003d want_to_check","commit_id":"0343db4131e8fd3e41219122f8d8e4ee7ae9111b"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"d4fd8ac05c1bd53224fd9df5170681f4ed8f4a44","unresolved":true,"context_lines":[{"line_number":80,"context_line":"            \".table_column_header th\")"},{"line_number":81,"context_line":"        table_row_test_provider \u003d ("},{"line_number":82,"context_line":"            resource_provider_tab.find_elements_by_css_selector("},{"line_number":83,"context_line":"                \"#providers__row__test_provider td\"))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        want_to_check \u003d {\"VCPUs used\": p[\u0027vcpus_used\u0027],"},{"line_number":86,"context_line":"                         \"VCPUs reserved\": p[\u0027vcpus_reserved\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"9938fb60_ad4cb2a1","line":83,"in_reply_to":"1130898a_ff25c8b9","updated":"2024-04-04 12:34:30.000000000","message":"table_providers \u003d dict(zip(x.text for x in table_header, x.text for x in table_row_test_provider))","commit_id":"0343db4131e8fd3e41219122f8d8e4ee7ae9111b"},{"author":{"_account_id":35133,"name":"Jan Jasek","email":"jjasek@redhat.com","username":"janjasek"},"change_message_id":"014454c9cc696c3b6252458508516fa5595b253b","unresolved":true,"context_lines":[{"line_number":80,"context_line":"            \".table_column_header th\")"},{"line_number":81,"context_line":"        table_row_test_provider \u003d ("},{"line_number":82,"context_line":"            resource_provider_tab.find_elements_by_css_selector("},{"line_number":83,"context_line":"                \"#providers__row__test_provider td\"))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        want_to_check \u003d {\"VCPUs used\": p[\u0027vcpus_used\u0027],"},{"line_number":86,"context_line":"                         \"VCPUs reserved\": p[\u0027vcpus_reserved\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1130898a_ff25c8b9","line":83,"in_reply_to":"6769be78_4520322e","updated":"2024-04-04 11:38:18.000000000","message":"It will not work. Because the table_providers will contain WebElements, not the text of web elements. And it is not possible to just use .text on a list of WebElements. So we would need to use another for loop anyway to get a list of text elements instead of WebElements before creating the table_providers dict.\nI think that the current solution with nested loop is not complicated to understand so I would prefer that over the many steps of preparing the data before assertion.","commit_id":"0343db4131e8fd3e41219122f8d8e4ee7ae9111b"},{"author":{"_account_id":35133,"name":"Jan Jasek","email":"jjasek@redhat.com","username":"janjasek"},"change_message_id":"cc95d790ec788ee5e06419e92a9275b8b9c6fdf1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            \".table_column_header th\")"},{"line_number":81,"context_line":"        table_row_test_provider \u003d ("},{"line_number":82,"context_line":"            resource_provider_tab.find_elements_by_css_selector("},{"line_number":83,"context_line":"                \"#providers__row__test_provider td\"))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        want_to_check \u003d {\"VCPUs used\": p[\u0027vcpus_used\u0027],"},{"line_number":86,"context_line":"                         \"VCPUs reserved\": p[\u0027vcpus_reserved\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"f95d48a2_a589ca3a","line":83,"in_reply_to":"9938fb60_ad4cb2a1","updated":"2024-04-04 12:59:23.000000000","message":"Done","commit_id":"0343db4131e8fd3e41219122f8d8e4ee7ae9111b"}]}
