79503061

Date: 2025-03-12 08:57:39
Score: 0.5
Natty:
Report link

In the code given the system path is set to '../tests' for the imported modules, as this is where duck_tester.py is being run from. When the imported modules themselves try to import, they are looking in '../tests' instead of '../src'. To address this, before importing modules within duck_tester.py, change the system path to '../src':

import sys
sys.path.append('../src')
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: acolls_badger