Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 4979445

Browse files
author
Tony Oreglia
committed
updated unit tesets
1 parent ddc8ea9 commit 4979445

File tree

37 files changed

+37
-37
lines changed

37 files changed

+37
-37
lines changed

tools/exporter/tests/csv_test_files/do_not_export_inactive_fields_expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Title Page","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""
33
"textsingle","Document No.","000001","","","","","","","","False","False","False","f3245d46-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","Title Page","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""
44
"textsingle","Audit Title","lots of inactive fields","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","Title Page","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""

tools/exporter/tests/csv_test_files/export_inactive_fields_true_expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Title Page","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""
33
"textsingle","Document No.","000001","","","","","","","","False","False","False","f3245d46-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","Title Page","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""
44
"textsingle","Audit Title","lots of inactive fields","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","lots of inactive fields","0","1","0","0","08 May 2017 01:29 AM","08 May 2017 01:30 AM","08 May 2017 01:30 AM","audit_65e55cd276c34b35a4f80503cd45ace8","template_ff387ba8a0eb409a856fd45d03f11aa0","smartfield with lots of children","Tony Oreglia","Title Page","000001","2017-05-08T01:29:54.000Z","Tony Oreglia","","",""

tools/exporter/tests/csv_test_files/null_date_test_expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Information","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","","2","40","5","37","02 June 2016 10:46 PM","02 June 2016 10:48 PM","06 June 2016 05:39 AM","audit_db47c084b11f468db0b96e7e0f60c3f5","template_c3dc25ed4bee4093b74f9fe06451ca80","Rugby Union Contest Self Assessment","Tony Oreglia","","1234","2016-06-02T22:46:27.000Z","Tony Oreglia","","",""
33
"textsingle","Document No.","1234","","","","","","","","False","False","False","f3245d46-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","","2","40","5","37","02 June 2016 10:46 PM","02 June 2016 10:48 PM","06 June 2016 05:39 AM","audit_db47c084b11f468db0b96e7e0f60c3f5","template_c3dc25ed4bee4093b74f9fe06451ca80","Rugby Union Contest Self Assessment","Tony Oreglia","Information","1234","2016-06-02T22:46:27.000Z","Tony Oreglia","","",""
44
"textsingle","Audit Title","","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","","2","40","5","37","02 June 2016 10:46 PM","02 June 2016 10:48 PM","06 June 2016 05:39 AM","audit_db47c084b11f468db0b96e7e0f60c3f5","template_c3dc25ed4bee4093b74f9fe06451ca80","Rugby Union Contest Self Assessment","Tony Oreglia","Information","1234","2016-06-02T22:46:27.000Z","Tony Oreglia","","",""

tools/exporter/tests/csv_test_files/unit_test_SafetyCulture_iAuditor___The_Smartest_Checklist_App__expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Information","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","","","2016-09-14T01:30:08.000Z","Safety Culture","","",""
33
"textsingle","Audit Title","","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","Information","","2016-09-14T01:30:08.000Z","Safety Culture","","",""
44
"textsingle","Prepared by","Safety Culture","","","","","","","","False","False","False","f3245d43-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","Information","","2016-09-14T01:30:08.000Z","Safety Culture","","",""

tools/exporter/tests/csv_test_files/unit_test_SafetyCulture_iAuditor___The_Smartest_Checklist_App__expected_output_expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Title Page","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","iOS signature","0","0","0","26","04 March 2017 10:11 AM","04 March 2017 10:11 AM","04 March 2017 10:11 AM","audit_8B9381F2AF5141828A03049FEEBF6EA6","template_28c1c18304724385a32d27758c50b008","single signature","Tony Oreglia","","000001","2017-03-04T10:11:14.000Z","Tony Oreglia","7 Gilbert Street
33
Dover Heights NSW 2030
44
Australia

tools/exporter/tests/csv_test_files/unit_test__expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Information","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","","","2016-09-14T01:30:08.000Z","Safety Culture","","",""
33
"textsingle","Audit Title","","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","Information","","2016-09-14T01:30:08.000Z","Safety Culture","","",""
44
"textsingle","Prepared by","Safety Culture","","","","","","","","False","False","False","f3245d43-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Safety Culture","Safety Culture","","25","38","65.789","93","14 September 2016 01:30 AM","14 September 2016 01:31 AM","14 September 2016 01:32 AM","audit_d941a829155642a5bcd49896f299be99","template_B6632195F27C4959827431640D7A126F","SafetyCulture iAuditor - The Smartest Checklist App","Jo Walter","Information","","2016-09-14T01:30:08.000Z","Safety Culture","","",""

tools/exporter/tests/csv_test_files/unit_test_failed_response_test__expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Title Page","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","","2","2","100","0","14 March 2017 03:49 AM","14 March 2017 03:50 AM","14 March 2017 03:50 AM","audit_b20000e6256949d9ba670ad2adab9ea6","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","","000001","2017-03-14T03:49:59.000Z","Tony Oreglia","","",""
33
"textsingle","Document No.","000001","","","","","","","","False","False","False","f3245d46-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","","2","2","100","0","14 March 2017 03:49 AM","14 March 2017 03:50 AM","14 March 2017 03:50 AM","audit_b20000e6256949d9ba670ad2adab9ea6","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","Title Page","000001","2017-03-14T03:49:59.000Z","Tony Oreglia","","",""
44
"textsingle","Audit Title","","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","","2","2","100","0","14 March 2017 03:49 AM","14 March 2017 03:50 AM","14 March 2017 03:50 AM","audit_b20000e6256949d9ba670ad2adab9ea6","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","Title Page","000001","2017-03-14T03:49:59.000Z","Tony Oreglia","","",""

tools/exporter/tests/csv_test_files/unit_test_failed_response_test_failed_response_not_chosen_expected_output.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Item Type","Label","Response","Comment","Media Hypertext Reference","Latitude","Longitude","Item Score","Item Max Score","Item Score Percentage","Mandatory","Failed Response","Inactive","Item ID","Response ID","Parent ID","Audit Owner","Audit Author","Audit Name","Audit Score","Audit Max Score","Audit Score Percentage","Audit Duration (seconds)","Date Started","Date Completed","Date Modified","Audit ID","Template ID","Template Name","Template Author","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
1+
"ItemType","Label","Response","Comment","MediaHypertextReference","Latitude","Longitude","ItemScore","ItemMaxScore","ItemScorePercentage","Mandatory","FailedResponse","Inactive","ItemID","ResponseID","ParentID","AuditOwner","AuditAuthor","AuditName","AuditScore","AuditMaxScore","AuditScorePercentage","AuditDuration","DateStarted","DateCompleted","DateModified","AuditID","TemplateID","TemplateName","TemplateAuthor","ItemCategory","DocumentNo","ConductedOn","PreparedBy","Location","Personnel","ClientSite"
22
"section","Title Page","","","","","","","","","False","False","False","f3245d39-ea77-11e1-aff1-0800200c9a66","","","Tony Oreglia","Tony Oreglia","failed response not chosen","2","2","100","0","14 March 2017 03:57 AM","14 March 2017 03:57 AM","14 March 2017 03:57 AM","audit_42dccfc041174eab9052e85804a7b115","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","","000002","2017-03-14T03:57:29.000Z","Tony Oreglia","","",""
33
"textsingle","Document No.","000002","","","","","","","","False","False","False","f3245d46-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","failed response not chosen","2","2","100","0","14 March 2017 03:57 AM","14 March 2017 03:57 AM","14 March 2017 03:57 AM","audit_42dccfc041174eab9052e85804a7b115","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","Title Page","000002","2017-03-14T03:57:29.000Z","Tony Oreglia","","",""
44
"textsingle","Audit Title","failed response not chosen","","","","","","","","False","False","False","f3245d40-ea77-11e1-aff1-0800200c9a66","","f3245d39-ea77-11e1-aff1-0800200c9a66","Tony Oreglia","Tony Oreglia","failed response not chosen","2","2","100","0","14 March 2017 03:57 AM","14 March 2017 03:57 AM","14 March 2017 03:57 AM","audit_42dccfc041174eab9052e85804a7b115","template_af475eb93d1745c0b3d78b3a374e7449","failed response test","Tony Oreglia","Title Page","000002","2017-03-14T03:57:29.000Z","Tony Oreglia","","",""

0 commit comments

Comments
 (0)