FootyStats / footy

Football Statistics
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

BugFix: Create a new instance of Footy for each test in test_footy #29

Closed SebDuff closed 4 years ago

SebDuff commented 4 years ago

By re-using footy at the instance scope there is a risk of data being changed in tests, impacting the result in subsequent tests.

I suggest we create a method to produce footy objects under test. e.g. https://github.com/FootyStats/footy/blob/6565dc7e1174dede37e3b9f49da7d41b615f0707/tests/domain/test_Competition.py#L20