@@ -183,22 +183,22 @@ def compare(
183
183
if not is_subset and not is_superset :
184
184
assertion_text = (
185
185
f"{ self .ref } doesn't have the element(s) "
186
- f"'{ self .apply_output_formatting_no_counts (lacking_values )} ' and has the excess element(s) "
187
- f"'{ self .apply_output_formatting_no_counts (excess_values )} ' when compared with the reference values. "
186
+ f"'{ self .apply_output_formatting (lacking_values )} ' and has the excess element(s) "
187
+ f"'{ self .apply_output_formatting (excess_values )} ' when compared with the reference values. "
188
188
f"{ self .condition_string } "
189
189
)
190
190
return False , assertion_text
191
191
if not is_subset :
192
192
assertion_text = (
193
193
f"{ self .ref } has the excess element(s) "
194
- f"'{ self .apply_output_formatting_no_counts (excess_values )} ' when compared with the reference values. "
194
+ f"'{ self .apply_output_formatting (excess_values )} ' when compared with the reference values. "
195
195
f"{ self .condition_string } "
196
196
)
197
197
return False , assertion_text
198
198
if not is_superset :
199
199
assertion_text = (
200
200
f"{ self .ref } doesn't have the element(s) "
201
- f"'{ self .apply_output_formatting_no_counts (lacking_values )} ' when compared with the reference values. "
201
+ f"'{ self .apply_output_formatting (lacking_values )} ' when compared with the reference values. "
202
202
f"{ self .condition_string } "
203
203
)
204
204
return False , assertion_text
@@ -241,7 +241,7 @@ def compare(
241
241
assertion_text = (
242
242
f"{ self .ref } has a fraction of { relative_violations } > "
243
243
f"{ self .max_relative_violations } { 'DISTINCT ' if self .compare_distinct else '' } values ({ n_violations } / { n_rows } ) not being an element of "
244
- f"'{ self .apply_output_formatting_no_counts (set (target_values ))} '. It has excess elements "
244
+ f"'{ self .apply_output_formatting (set (target_values ))} '. It has excess elements "
245
245
f"'{ output_elemes } ' "
246
246
f"with counts { output_counts } ."
247
247
f"{ self .condition_string } "
@@ -276,8 +276,8 @@ def compare(
276
276
assertion_text = (
277
277
f"{ self .ref } has a fraction of "
278
278
f"{ relative_violations } > { self .max_relative_violations } ({ n_violations } / { n_rows } ) "
279
- f"lacking unique values of '{ self .apply_output_formatting_no_counts (set (target_values ))} '. It "
280
- f"doesn't have the unique value(s) '{ self .apply_output_formatting_no_counts (list (remainder ))} '."
279
+ f"lacking unique values of '{ self .apply_output_formatting (set (target_values ))} '. It "
280
+ f"doesn't have the unique value(s) '{ self .apply_output_formatting (list (remainder ))} '."
281
281
f"{ self .condition_string } "
282
282
)
283
283
return False , assertion_text
0 commit comments