diff --git a/qiita_db/test/test_study.py b/qiita_db/test/test_study.py index a235c3cce..3b0a4df55 100644 --- a/qiita_db/test/test_study.py +++ b/qiita_db/test/test_study.py @@ -442,7 +442,11 @@ def test_create_unknown_db_col(self): def test_delete(self): title = "Fried chicken microbiome" - study = Study.create(User('test@foo.bar'), title, [1], self.info) + # the study is assigned to investigation 1 + study = Study.create(User('test@foo.bar'), title, [1], self.info, + Investigation(1)) + # sharing with other user + study.share(User("shared@foo.bar")) study.delete(study.id) self.assertFalse(study.exists(title))