Skip to content

Commit

Permalink
tests: amend RecordsBuckets api usage
Browse files Browse the repository at this point in the history
* Updates tests using the RecordsBuckets api.

Signed-off-by: Sami Hiltunen <sami.mikael.hiltunen@cern.ch>
  • Loading branch information
SamiHiltunen committed May 26, 2016
1 parent be3ff7e commit e22f070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_views_records_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_file_download_ui(base_app, objects, db):
'checksum': 'invalid'},
]
}, id_=rec_uuid)
record.model.records_buckets = RecordsBuckets(bucket=obj1.bucket)
RecordsBuckets.create(record=record.model, bucket=obj1.bucket)
db.session.commit()

main_url = url_for('invenio_records_ui.recid', pid_value='1')
Expand Down

0 comments on commit e22f070

Please sign in to comment.