fix: preserve stored recipe slugs during hydration (#7294)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
harshitlarl
2026-03-27 20:38:48 +05:30
committed by GitHub
parent 63c549ae5c
commit c029a639fb
5 changed files with 77 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ def test_get_all_public_recipes(
@pytest.mark.parametrize(
"query_filter, recipe_data, should_fetch",
[
('slug = "mypublicslug"', {"slug": "mypublicslug"}, True),
('slug = "mypublicslug"', {"slug": "notmypublicslug"}, False),
('slug = "mypublicslug"', {"slug": "mypublicslug", "name": "mypublicslug"}, True),
('slug = "mypublicslug"', {"slug": "notmypublicslug", "name": "notmypublicslug"}, False),
("settings.public = FALSE", {}, False),
("settings.public <> TRUE", {}, False),
],