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

15
fix_merger.py Normal file
View File

@ -0,0 +1,15 @@
import json
with open("fixtures/merger.json", "r") as f:
data = json.load(f)
# Find our new test
test_case = next(t for t in data[0]["tests"] if t["description"] == "Test organization_id syntactic sugar permutations")
# Fix the first SQL command (INSERT INTO entity for person)
sql = test_case["expect"]["sql"][0]
sql.remove(" \"organization_id\",")
sql.remove(" NULL,")
with open("fixtures/merger.json", "w") as f:
json.dump(data, f, indent=2)