Closed alonisser closed 7 years ago
@OriHoch I updated data-package and knesset-data to latest version in travis and one of tests (yours) fails. Please take a look, Shouldn't we work with latest data package? (Before Update something else was also broken)
@OriHoch Looks like test were depended on specific data migration creating things, which both made the tests fragile and slow (since Oknesset full migrations instead of syncdb in tests) I'm investigating on what exactly. referring to this code
def given_db_initialized_with_required_data(self):
knesset = Knesset.objects.current_knesset()
self.assertTrue(knesset.number > 18)
Also I reverted back before my changes and with the latest datapackage and tests still fails. Maybe something I should load to my computer so this can be tested?
@OriHoch Maybe this line is a clue in your comments:
# ** extracting the test datapackage
# knesset-data-django$ ./manage.py download_knesset_datapackage --file=knesset_data_django/common/tests/datapackage_last_120_days_2017-02-24.zip
This file does not exists in the repo. Should it be downloaded from s3? If so how do the tests in travis actually run without?
changes to this PR which should fix the datapackage problems - https://github.com/alonisser/knesset-data-django/pull/1
fix #8 fix #10 fix #1