There was an error while loading. Please reload this page.
2 parents 019098b + a8826d5 commit 076d335Copy full SHA for 076d335
1 file changed
tests/integration/api/test_17_entry_variants.py
@@ -36,6 +36,7 @@ def test_include_variants_requires_variant_uid(self, stack, entry_ctx):
36
class TestEntryVariantsNegative:
37
def test_fetch_nonexistent(self, stack, entry_ctx):
38
ct_uid, entry_uid = entry_ctx
39
- resp = stack.content_types(ct_uid).entry(entry_uid).variants("no_such_variant").fetch()
+ # variants(x) treats x as branch, not variant_uid — pass uid to fetch() instead.
40
+ resp = stack.content_types(ct_uid).entry(entry_uid).variants().fetch("no_such_variant")
41
# Variants API returns 412 (precondition failed, code 1010) for unknown variant.
42
h.assert_status(resp, 404, 412, 422)
0 commit comments