From dace99b9e0bb6d2cbe6a7ee780fc5ef540f232ba Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 5 Jun 2024 11:39:17 -0500 Subject: [PATCH] fix comparison of configs in Save As test newer config structures will convert old configs to the new fields' defaults, meaning the after won't be the same as the before once there's a proto change not present in the original file (such as with this proto bump for 0.7.9), so just do a more rudimentary compare Signed-off-by: Brian S. Stephan --- tests/test_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gui.py b/tests/test_gui.py index 3edde04..c81c0f1 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -275,4 +275,4 @@ async def test_save_as(config_binary, tmp_path): with open('/tmp/gptest', 'rb') as new_file: test_config_binary = new_file.read() test_config = get_config(test_config_binary) - assert original_config == test_config + assert original_config.boardVersion == test_config.boardVersion