From 7c77c15985257e0424cd9395143da8e20ec12a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Wed, 18 Sep 2024 20:04:25 +0200 Subject: [PATCH] tests: improve tests a bit Making it easier to distinguish id and name, and checking it in more places --- tests/gs-self-test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/gs-self-test.c b/tests/gs-self-test.c index cf908b9..7c61b0e 100644 --- a/tests/gs-self-test.c +++ b/tests/gs-self-test.c @@ -126,6 +126,8 @@ gs_plugins_apk_updates (GsPluginLoader *plugin_loader) // Check desktop app desktop_app = gs_app_list_index (update_list, 0); g_assert_nonnull (desktop_app); + g_assert_false (gs_app_has_quirk (desktop_app, GS_APP_QUIRK_IS_PROXY)); + g_assert_cmpstr (gs_app_get_name (desktop_app), ==, "ApkTestApp"); g_assert_cmpint (gs_app_get_state (desktop_app), ==, GS_APP_STATE_UPDATABLE_LIVE); // Check generic proxy app generic_app = gs_app_list_index (update_list, 1); @@ -282,13 +284,13 @@ main (int argc, char **argv) "\n" " \n" " apk-test-app.desktop\n" - " apk-test-app\n" + " ApkTestApp\n" " Alpine Package Keeper test app\n" " apk-test-app\n" " \n" " \n" " no-source-app.desktop\n" - " no-source-app\n" + " NoSourceApp\n" " App with missing source in metadata\n" " \n" " /usr/share/apps/no-source-app.desktop\n"