proper test for merge fix for organization_id setting

This commit is contained in:
2026-05-13 15:38:42 -04:00
parent c7372891d8
commit 40e08cbf09
10 changed files with 1105 additions and 12 deletions

20
fix_quotes_json2.py Normal file
View File

@ -0,0 +1,20 @@
import json
with open("fixtures/merger.json", "r") as f:
data = json.load(f)
test_case = data[0]["tests"][-1]
for j, sql_group in enumerate(test_case["expect"]["sql"]):
for i, s in enumerate(sql_group):
s = s.replace("'{timestamp}'", "'{{timestamp}}'")
s = s.replace("'{uuid}'", "'{{uuid}}'")
s = s.replace("'{uuid:person_id}'", "'{{uuid:person_id}}'")
s = s.replace("'{uuid:order_id}'", "'{{uuid:order_id}}'")
s = s.replace("'{uuid:line1_id}'", "'{{uuid:line1_id}}'")
s = s.replace("'{uuid:line2_id}'", "'{{uuid:line2_id}}'")
sql_group[i] = s
with open("fixtures/merger.json", "w") as f:
json.dump(data, f, indent=2)