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

Do you need help?

Es 2 Error 21a

DRDLCN (8070 points)
28 68 104
in Es2 by (8.1k points)
recategorized by
ERROR: test_21a_Skyline_aggiungi_errato_1___s1____r1____10_ (__main__.Test)
list() -> new empty list
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Edoardo\Anaconda3\lib\site-packages\ddt.py", line 145, in wrapper
    return func(self, *args, **kwargs)
  File "C:/Users/Edoardo/Documents/homework03/homework03/test_02.py", line 183, in test_21a_Skyline_aggiungi_errato
    s = getattr(self, sk)
AttributeError: 'Test' object has no attribute 's1'

non riesco a capire l'errore di questo test, controllo se viene passata una skyline di tipo Skyline valida cosa sbaglio?
328 views

1 Answer

Xriuk (13590 points)
8 24 116
by (13.6k points)
Stai eseguendo un singolo test?
DRDLCN (8070 points)
28 68 104
by (8.1k points)
no tutti insieme
Xriuk (13590 points)
8 24 116
by (13.6k points)
E quel "list() -> new empty list"? Non è che stai restituendo qualcosa di vuoto?
DRDLCN (8070 points)
28 68 104
by (8.1k points)
io metto gli skyline in una lista, puo essere questo l'errore?
DRDLCN (8070 points)
28 68 104
by (8.1k points)
risolto, to_tuple(self) che torna la tupla (sfondo,)

questo metodo cosa deve ritornare?? sfondo , che vuol dire?
K
Khalester (3310 points)
2 5 24
by (3.3k points)
significa una tupla con un solo elemento