Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Y-Cable] Increased unit test coverage of y_cable_helper.py (#229)
Added unit tests for the following methods: y_cable_wrapper_get_transceiver_info y_cable_wrapper_get_presence y_cable_toggle_mux_torA y_cable_toggle_mux_torB format_mapping_identifier update_appdb_port_mux_cable_response_table update_table_mux_status_for_response_tbl update_tor_active_side read_y_cable_and_update_statedb_port_tbl delete_port_from_y_cable_table create_tables_and_insert_mux_unknown_entries check_identifier_presencead_update_mux_table_entry init_ports_status_for_y_cable change_ports_status_for_y_cable_change_event delete_ports_status_for_y_cable get_firmware_dict get_muxcable_info get_muxcable_static_info post_mux_info_to_db task_download_firmware_worker Motivation and Context The motivation for these changes stems from needing to increase the unit test coverage of the y_cable_helper methods to above 50%. How Has This Been Tested? This was tested by building and running the new unit tests and verifying that they contribute to and increase the code coverage as reflected in the xcvrd_xcvrd_utilities_y_cable_helper_py.html page. Co-authored-by: Ashwin Srinivasan <ashwin.srinivasan@microsoft.com>
- Loading branch information