Open nitsanavni opened 7 months ago
experimenting with cyber-dojo + inline approvals + auto-approval https://cyber-dojo.org/kata/edit/US1feV
(almost works)
Found the problem:
We're doing a shallow file compare (only comparing stats), and if the received is the exact length as approved we get a false positive.
for inline in cyber-dojo this line should be:
if filecmp.cmp(approved_path, received_path, shallow=is_not_cyber_dojo()):
see here: https://cyber-dojo.org/kata/edit/bHvRz1
update: fixed in latest release
now waiting to be merged to cyberdojo https://github.com/cyber-dojo-languages/python-approval-pytest/pull/4 https://github.com/cyber-dojo-languages/python-approval-unittest/pull/4
doesn't quite work as expected yet, see here - https://cyber-dojo.org/kata/edit/b0U7pS