Skip to content

Fix analysis tests #1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 28, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing test_meta_util.py
  • Loading branch information
josenavas committed Apr 24, 2015
commit 69cfcc107d23e1e1dadc5d4534137c2ec66ac153
6 changes: 3 additions & 3 deletions qiita_db/test/test_meta_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_get_accessible_filepath_ids(self):

obs = get_accessible_filepath_ids(User('shared@foo.bar'))
self.assertEqual(obs, set([1, 2, 5, 6, 7, 11, 12, 13, 14, 15, 16, 17,
18]))
18, 19]))

# Now shared should not have access to the study files
self._unshare_studies()
Expand All @@ -52,10 +52,10 @@ def test_get_accessible_filepath_ids(self):
# Now shared has access to public study files
self._set_processed_data_public()
obs = get_accessible_filepath_ids(User('shared@foo.bar'))
self.assertEqual(obs, set([1, 2, 5, 6, 7, 11, 16]))
self.assertEqual(obs, set([1, 2, 5, 6, 7, 11, 16, 19]))

# Test that it doesn't break: if the SampleTemplate hasn't been added
exp = set([1, 2, 5, 6, 7, 11, 12, 13, 14, 15, 16, 17, 18])
exp = set([1, 2, 5, 6, 7, 11, 12, 13, 14, 15, 16, 17, 18, 19])
obs = get_accessible_filepath_ids(User('test@foo.bar'))
self.assertEqual(obs, exp)

Expand Down