Skip to content

Test cases4,5#1

Open
ghaith-mq wants to merge 2 commits intomainfrom
TestCases4,5
Open

Test cases4,5#1
ghaith-mq wants to merge 2 commits intomainfrom
TestCases4,5

Conversation

@ghaith-mq
Copy link
Collaborator

I added 4,5 cases.

@AndreevP
Copy link
Owner

It seems that your code doesn't cover the test cases as the generator doesn't produce persons who are sick for more than 1 day. Besides, Person instance doesn't have .days_sick attribute (person.state does).
Traceback (most recent call last): File "tests.py", line 65, in test_fromsick2healthy if (p1.days_sick==2) and (p1.virus.strength >0): AttributeError: 'Person' object has no attribute 'days_sick'

@AndreevP
Copy link
Owner

Could you please create another unittest.TestCase class, as I am afraid that my generator (setUp) doesn't cover your test cases needs and it is a bit dangerous to change the generator because it may cause harm to already covered test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants