Skip to content

Commit 1708eb6

Browse files
committed
adding to an investigation and sharing with a user. Fix #1079
1 parent ef7955c commit 1708eb6

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
@@ -442,7 +442,11 @@ def test_create_unknown_db_col(self):
442442

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

0 commit comments

Comments
 (0)