Fix asserts

This commit is contained in:
amercader 2020-02-10 22:11:42 +01:00
parent b670aa64a8
commit 1b120da59a
1 changed files with 2 additions and 2 deletions

View File

@ -34,14 +34,14 @@ class MockHarvester(SingletonPlugin):
return []
def fetch_stage(self, harvest_object):
assert_equal(harvest_object.state, "FETCH")
assert harvest_object.state == "FETCH"
assert harvest_object.fetch_started is not None
harvest_object.content = json.dumps({'name': harvest_object.guid})
harvest_object.save()
return True
def import_stage(self, harvest_object):
assert_equal(harvest_object.state, "IMPORT")
assert harvest_object.state == "IMPORT"
assert harvest_object.fetch_finished is not None
assert harvest_object.import_started is not None