Quando faccio partire i test in Spyder mi esce questo errore:
Traceback (most recent call last):
File "C:\Users\elisa\micromamba\envs\F22\lib\site-packages\ddt.py", line 220, in wrapper
return func(self, *args, **kwargs)
File "c:\users\elisa\downloads\hw4rec\hw4-rec\test_01.py", line 137, in test_print_top_students
return self.do_test(f, params, expected, timeout, fout, fexp)
File "c:\users\elisa\downloads\hw4rec\hw4-rec\test_01.py", line 45, in do_test
self.check_text_file(fexpected, fout, ('The content of the file is incorrect\n'
File "C:\Users\elisa\Downloads\HW4rec\HW4-rec\testlib.py", line 168, in check_text_file
with open(b, encoding='utf8') as f: txt_b = f.read()
FileNotFoundError: [Errno 2] No such file or directory: 'test_pts1_l.txt'
Qualcuno ha avuto lo stesso problema ed è riuscito a risolvere?
Traceback (most recent call last):
File "C:\Users\elisa\micromamba\envs\F22\lib\site-packages\ddt.py", line 220, in wrapper
return func(self, *args, **kwargs)
File "c:\users\elisa\downloads\hw4rec\hw4-rec\test_01.py", line 137, in test_print_top_students
return self.do_test(f, params, expected, timeout, fout, fexp)
File "c:\users\elisa\downloads\hw4rec\hw4-rec\test_01.py", line 45, in do_test
self.check_text_file(fexpected, fout, ('The content of the file is incorrect\n'
File "C:\Users\elisa\Downloads\HW4rec\HW4-rec\testlib.py", line 168, in check_text_file
with open(b, encoding='utf8') as f: txt_b = f.read()
FileNotFoundError: [Errno 2] No such file or directory: 'test_pts1_l.txt'
Qualcuno ha avuto lo stesso problema ed è riuscito a risolvere?