• unfair test

 

I canot get past test in defenders mission. It shows my result as 12 health. here is the test i fail unit1 = Defender() unit2 = Rookie() fight(unit1, unit2) unit_1.health

In the section where i test my code i put similar section and it prints that bob has 60 health. That is the correct result. bob = Defender() mike = Rookie() assert fight(bob, mike) == True print(bob.health)

Can you please help me find out why do i have different results?

From: https://py.checkio.org/mission/the-defenders/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
16