Closed cuducos closed 7 years ago
def TestLatest(TestCase):
def test_cities_was_added(self):
self.assertIn('2017-05-22-brazilian-cities.csv', Datasets().downloader.LATEST)
Or even:
def test_latest(self):
self.assertEqual(28, len(Datasets().downloader.LATEST))
But the real question is would it worth it?
I don't think that this kind of year worth.
What can be done to protect us from the future ourselves ?
May it should break if any of this files are removed from this list?
... this kind of test* ...
May it should break if any of this files are removed from this list?
I don't think so, because we remove old versions when there are new ones available… although we would never see the len()
of the list get smaller, because we would either replace a file (adding a newer version) or add a new dataset (which was not present in the list before).
Why is this constant important for toolbox?
The LATEST constant is not used anywhere in this file, if I remove it all project tests will pass smoothly. Is it OK?
It's used here, in a function documented here.
Maybe the test you'd like to enhance is this one.
Is there any point against enhance this tests?
Is there any point against enhance this tests?
Not at all ; )
Fix #78