replace double % for some dialects

This commit is contained in:
collerek
2021-04-20 12:10:39 +02:00
parent d5295543d4
commit ac426de757

View File

@ -177,7 +177,6 @@ def test_combining_groups_together():
group._nested_groups[1]._nested_groups[0].actions[0].table_prefix group._nested_groups[1]._nested_groups[0].actions[0].table_prefix
) )
category_prefix = group._nested_groups[1]._nested_groups[1].actions[0].table_prefix category_prefix = group._nested_groups[1]._nested_groups[1].actions[0].table_prefix
group_str.replace()
assert group_str == ( assert group_str == (
f"( ( product.name LIKE '%Test%' ) " f"( ( product.name LIKE '%Test%' ) "
f"OR ( ( {price_list_prefix}_price_lists.name LIKE 'Aa%' ) " f"OR ( ( {price_list_prefix}_price_lists.name LIKE 'Aa%' ) "