Skip to content

List proc data in search #1039

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
Show file tree
Hide file tree
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
clean up tests
  • Loading branch information
squirrelo committed Apr 13, 2015
commit 3fe2af9b12b23371aea417b8f61c18ba81b2bdce
2 changes: 1 addition & 1 deletion qiita_pet/handlers/study_handlers/listing_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _build_study_info(user, study_proc=None, proc_samples=None):
with that study. Required if proc_samples given.
proc_samples : dict of lists, optional
Dictionary keyed on proc_data_id that lists all samples associated with
that processed data. Rquired if study_proc given.
that processed data. Required if study_proc given.

Returns
-------
Expand Down
10 changes: 3 additions & 7 deletions qiita_pet/test/test_study_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from qiita_db.user import User
from qiita_pet.handlers.study_handlers.listing_handlers import (
_get_shared_links_for_study, _build_study_info, _build_single_study_info,
_build_proc_data_info)
_build_single_proc_data_info)


class TestHelpers(TestHandlerBase):
Expand Down Expand Up @@ -148,16 +148,12 @@ def test_build_single_study_info(self):
'lifecycle.'
}
obs = _build_single_study_info(Study(1), study_info)
for key, val in self.single_exp.iteritems():
if obs[key] != val:
print key
print obs[key], val
self.assertEqual(obs, self.single_exp)

def test_build_proc_data_info(self):
def test_build_single_proc_data_info(self):
study_proc = {1: [1]}
proc_samples = {1: self.proc_data_exp[0]['samples']}
obs = _build_proc_data_info(Study(1), study_proc, proc_samples)
obs = _build_single_proc_data_info(Study(1), study_proc, proc_samples)
self.assertEqual(obs, self.proc_data_exp)

def test_build_study_info(self):
Expand Down