Skip to content

Commit d51911b

Browse files
committed
Merge pull request #1143 from antgonza/fix-1079
adding to an investigation and sharing with a user. Fix #1079
2 parents 03382b9 + 1708eb6 commit d51911b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qiita_db/test/test_study.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,11 @@ def test_create_unknown_db_col(self):
441441

442442
def test_delete(self):
443443
title = "Fried chicken microbiome"
444-
study = Study.create(User('test@foo.bar'), title, [1], self.info)
444+
# the study is assigned to investigation 1
445+
study = Study.create(User('test@foo.bar'), title, [1], self.info,
446+
Investigation(1))
447+
# sharing with other user
448+
study.share(User("shared@foo.bar"))
445449
study.delete(study.id)
446450
self.assertFalse(study.exists(title))
447451

0 commit comments

Comments
 (0)