File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -928,9 +928,11 @@ class TestLiterals(HashModel):
928
928
929
929
schema = TestLiterals .redisearch_schema ()
930
930
931
+ key_prefix = TestLiterals .make_key (
932
+ TestLiterals ._meta .primary_key_pattern .format (pk = "" )
933
+ )
931
934
assert schema == (
932
- "ON HASH PREFIX 1 :tests.test_hash_model.TestLiterals: SCHEMA pk TAG SEPARATOR | flavor TAG "
933
- "SEPARATOR |"
935
+ f"ON HASH PREFIX 1 { key_prefix } SCHEMA pk TAG SEPARATOR | flavor TAG SEPARATOR |"
934
936
)
935
937
await Migrator ().run ()
936
938
item = TestLiterals (flavor = "pumpkin" )
Original file line number Diff line number Diff line change @@ -1133,8 +1133,11 @@ class TestLiterals(JsonModel):
1133
1133
1134
1134
schema = TestLiterals .redisearch_schema ()
1135
1135
1136
+ key_prefix = TestLiterals .make_key (
1137
+ TestLiterals ._meta .primary_key_pattern .format (pk = "" )
1138
+ )
1136
1139
assert schema == (
1137
- "ON JSON PREFIX 1 :tests.test_json_model.TestLiterals: SCHEMA $.pk AS pk TAG SEPARATOR | "
1140
+ f "ON JSON PREFIX 1 { key_prefix } SCHEMA $.pk AS pk TAG SEPARATOR | "
1138
1141
"$.flavor AS flavor TAG SEPARATOR |"
1139
1142
)
1140
1143
await Migrator ().run ()
You can’t perform that action at this time.
0 commit comments