Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Error AttributeError: 'Test' object has no attribute 'ignored_fu'

e
elisa.onder (1920 points)
2 4 6
in HW8 by (1.9k points)

When I try to test the hw on the terminal I got this error AttributeError: 'Test' object has no attribute 'ignored_fu' but if I manually pass the parameters on Spyder it works and it give me the right output. 

Does anyone have any idea why it throws me that error?

310 views

2 Answers

Simone Russolillo (5790 points)
7 10 22
by (5.8k points)
Is ignored_fu a name of a function you used? Maybe you are applying your module on the test whereas instead you should apply the test on the module, remember to change directory when in the terminal and then paste the command for testing. Don't know what other problem it could be.
gabriel.bustamante (2540 points)
3 6 20
by (2.5k points)

Try checking line 33 of test01.py, it should look like this

with    self.ignored_function('pprint.pprint'), \