Closed SebDuff closed 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
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