From e0409d8c2b1160bd1f8b2b29ae18775f81dcab7c Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 12 Jun 2026 14:36:47 -0400 Subject: Update test_recipe.c --- tests/test_recipe.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/test_recipe.c b/tests/test_recipe.c index 3ea21ce..939ac7d 100644 --- a/tests/test_recipe.c +++ b/tests/test_recipe.c @@ -33,27 +33,27 @@ void test_recipe_clone() { {.recipe_dir = "recipe_condaforge", .url = "https://github.com/conda-forge/fitsverify-feedstock", .gitref = "HEAD", - .expect_type = RECIPE_TYPE_CONDA_FORGE, + .expect_type = RECIPE_STYLE_CONDA_FORGE, .expect_return = 0}, {.recipe_dir = "recipe_astroconda", .url = "https://github.com/astroconda/astroconda-contrib", .gitref = "HEAD", - .expect_type = RECIPE_TYPE_ASTROCONDA, + .expect_type = RECIPE_STYLE_ASTROCONDA, .expect_return = 0}, {.recipe_dir = "recipe_generic", .url = "local_repo", .gitref = "HEAD", - .expect_type = RECIPE_TYPE_GENERIC, + .expect_type = RECIPE_STYLE_GENERIC, .expect_return = 0}, {.recipe_dir = "recipe_unknown", .url = "https://github.com/astroconda/firewatch", .gitref = "HEAD", - .expect_type = RECIPE_TYPE_UNKNOWN, + .expect_type = RECIPE_STYLE_UNKNOWN, .expect_return = 0}, {.recipe_dir = "recipe_broken", .url = "123_BAD_BAD_BAD_456", .gitref = "HEAD", - .expect_type = RECIPE_TYPE_UNKNOWN, + .expect_type = RECIPE_STYLE_UNKNOWN, .expect_return = 128}, }; for (size_t i = 0; i < sizeof(tc) / sizeof(*tc); i++) { @@ -76,7 +76,7 @@ void test_recipe_clone() { // Ensure a path to the repository was returned in the result argument STASIS_ASSERT(result_path != NULL, "result path should not be NULL"); // Verify the repository was detected as the correct recipe type - STASIS_ASSERT(recipe_get_type(result_path) == test->expect_type, "repository detected as the wrong type"); + STASIS_ASSERT(recipe_get_style(result_path) == test->expect_type, "repository detected as the wrong type"); if (test->expect_return == 0) { // Verify the result path exists -- cgit