Skip to content

Commit

Permalink
- Fixing integration test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Sep 10, 2019
1 parent 9bb5b96 commit 7c196ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geonode/upload/tests/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ def check_upload_model(self, original_name):
upload = Upload.objects.filter(name=str(original_name)).last()
# Making sure the Upload object is present on the DB and
# the import session is COMPLETE
if upload:
self.assertTrue(upload.complete)
if upload and not upload.complete:
logger.warning(
"Upload not complete for Layer %s" %
original_name)
except Upload.DoesNotExist:
self.fail('expected to find Upload object for %s' % original_name)

Expand Down

0 comments on commit 7c196ac

Please sign in to comment.