Skip to content

Commit

Permalink
Fix test coverage for new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-balachander committed Dec 27, 2023
1 parent 47c176d commit 067eed7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cumulusci/tasks/bulkdata/tests/recordtypes_2.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
BEGIN TRANSACTION;
CREATE TABLE Beta_rt_mapping (
record_type_id VARCHAR(18) NOT NULL,
developer_name VARCHAR(255),
developer_name VARCHAR(255),
is_person_type BOOLEAN,
PRIMARY KEY (record_type_id)
);
INSERT INTO "Beta_rt_mapping" VALUES('012H40000003jCoIAI','recordtype2');
INSERT INTO "Beta_rt_mapping" VALUES('012H40000003jCZIAY','recordtype1');
INSERT INTO "Beta_rt_mapping" VALUES('012H40000003jCoIAI','recordtype2',0);
INSERT INTO "Beta_rt_mapping" VALUES('012H40000003jCZIAY','recordtype1',0);
CREATE TABLE Beta (
id INTEGER NOT NULL,
"Name" VARCHAR(255),
Expand Down
1 change: 1 addition & 0 deletions cumulusci/tasks/bulkdata/tests/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,7 @@ def test_query_db__record_type_mapping_table_from_tablename(self):
FROM "Beta"
LEFT OUTER JOIN "Beta_rt_mapping" ON "Beta_rt_mapping".record_type_id = "Beta"."RecordType"
LEFT OUTER JOIN "Account_rt_target_mapping" ON "Account_rt_target_mapping".developer_name = "Beta_rt_mapping".developer_name
AND "Account_rt_target_mapping".is_person_type = "Beta_rt_mapping".is_person_type
""",
)

Expand Down

0 comments on commit 067eed7

Please sign in to comment.