Skip to content

Commit 3fe2af9

Browse files
committed
clean up tests
1 parent 10b0c5c commit 3fe2af9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

qiita_pet/handlers/study_handlers/listing_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _build_study_info(user, study_proc=None, proc_samples=None):
123123
with that study. Required if proc_samples given.
124124
proc_samples : dict of lists, optional
125125
Dictionary keyed on proc_data_id that lists all samples associated with
126-
that processed data. Rquired if study_proc given.
126+
that processed data. Required if study_proc given.
127127
128128
Returns
129129
-------

qiita_pet/test/test_study_handlers.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from qiita_db.user import User
99
from qiita_pet.handlers.study_handlers.listing_handlers import (
1010
_get_shared_links_for_study, _build_study_info, _build_single_study_info,
11-
_build_proc_data_info)
11+
_build_single_proc_data_info)
1212

1313

1414
class TestHelpers(TestHandlerBase):
@@ -148,16 +148,12 @@ def test_build_single_study_info(self):
148148
'lifecycle.'
149149
}
150150
obs = _build_single_study_info(Study(1), study_info)
151-
for key, val in self.single_exp.iteritems():
152-
if obs[key] != val:
153-
print key
154-
print obs[key], val
155151
self.assertEqual(obs, self.single_exp)
156152

157-
def test_build_proc_data_info(self):
153+
def test_build_single_proc_data_info(self):
158154
study_proc = {1: [1]}
159155
proc_samples = {1: self.proc_data_exp[0]['samples']}
160-
obs = _build_proc_data_info(Study(1), study_proc, proc_samples)
156+
obs = _build_single_proc_data_info(Study(1), study_proc, proc_samples)
161157
self.assertEqual(obs, self.proc_data_exp)
162158

163159
def test_build_study_info(self):

0 commit comments

Comments
 (0)