From 1708eb67ad8f2453e32b43d6e6cb7ab0015b6064 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Fri, 1 May 2015 21:04:47 -0600 Subject: [PATCH] adding to an investigation and sharing with a user. Fix #1079 --- qiita_db/test/test_study.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))