Skip to content

Commit de3ff0d

Browse files
committed
test: fix attempt 2, duplicate records
1 parent 41d96ff commit de3ff0d

10 files changed

Lines changed: 10 additions & 10 deletions

bc_obps/reporting/tests/models/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_report_rls_cas_user(self):
133133
"reporting.tests.utils.report",
134134
)
135135

136-
def select_function(cursor, i):
136+
def select_function(cursor):
137137
assert Report.objects.count() == test_quantity
138138

139139
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_report_activity_rls_cas_user(self):
154154
"reporting.tests.utils.report_activity",
155155
)
156156

157-
def select_function(cursor, i):
157+
def select_function(cursor):
158158
assert ReportActivity.objects.count() == test_quantity
159159

160160
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_additional_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_report_additional_data_rls_cas_user(self):
153153
"reporting.tests.utils.report_additional_data",
154154
)
155155

156-
def select_function(cursor, i):
156+
def select_function(cursor):
157157
assert ReportAdditionalData.objects.count() == test_quantity
158158

159159
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_attachment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_report_attachment_rls_cas_user(self):
153153
"reporting.tests.utils.report_attachment",
154154
)
155155

156-
def select_function(cursor, i):
156+
def select_function(cursor):
157157
assert ReportAttachment.objects.count() == test_quantity
158158

159159
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_attachment_confirmation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_report_attachment_confirmation_rls_cas_user(self):
154154
"reporting.tests.utils.report_attachment_confirmation",
155155
)
156156

157-
def select_function(cursor, i):
157+
def select_function(cursor):
158158
assert ReportAttachmentConfirmation.objects.count() == test_quantity
159159

160160
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_emission_allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_report_emission_allocation_rls_cas_user(self):
188188
"reporting.tests.utils.report_emission_allocation",
189189
)
190190

191-
def select_function(cursor, i):
191+
def select_function(cursor):
192192
assert ReportEmissionAllocation.objects.count() == test_quantity
193193

194194
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_methodology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_report_methodology_rls_cas_user(self):
139139
"reporting.tests.utils.report_methodology",
140140
)
141141

142-
def select_function(cursor, i):
142+
def select_function(cursor):
143143
assert ReportMethodology.objects.count() == test_quantity
144144

145145
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_new_entrant_production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_report_new_entrant_production_rls_cas_user(self):
143143
"reporting.tests.utils.report_new_entrant_production",
144144
)
145145

146-
def select_function(cursor, i):
146+
def select_function(cursor):
147147
assert ReportNewEntrantProduction.objects.count() == test_quantity
148148

149149
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_report_operation_rls_rls_cas_user(self):
175175
"reporting.tests.utils.report_operation",
176176
)
177177

178-
def select_function(cursor, i):
178+
def select_function(cursor):
179179
assert ReportOperation.objects.count() == test_quantity
180180

181181
assert_policies_for_cas_roles(

bc_obps/reporting/tests/models/test_report_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def test_report_version_rls_cas_user(self):
361361
"reporting.tests.utils.report_version",
362362
)
363363

364-
def select_function(cursor, i):
364+
def select_function(cursor):
365365
assert ReportVersion.objects.count() == test_quantity
366366

367367
assert_policies_for_cas_roles(

0 commit comments

Comments
 (0)