Skip to content

Commit 293ab38

Browse files
committed
arg, forgot to save changes in other files
1 parent 6a9c2f9 commit 293ab38

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

qiita_db/handlers/tests/test_plugin.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class UtilTests(TestCase):
2020
def test_get_plugin(self):
21-
obs = _get_plugin("QIIME", "1.9.1")
21+
obs = _get_plugin("QIIMEq2", "1.9.1")
2222
exp = qdb.software.Software(1)
2323
self.assertEqual(obs, exp)
2424

@@ -27,7 +27,7 @@ def test_get_plugin(self):
2727
_get_plugin("QiIME", "1.9.1")
2828

2929
def test_get_command(self):
30-
obs = _get_command('QIIME', '1.9.1', 'Split libraries FASTQ')
30+
obs = _get_command('QIIMEq2', '1.9.1', 'Split libraries FASTQ')
3131
exp = qdb.software.Command(1)
3232
self.assertEqual(obs, exp)
3333

@@ -38,18 +38,18 @@ def test_get_command(self):
3838

3939
class PluginHandlerTests(OauthTestingBase):
4040
def test_get_plugin_does_not_exist(self):
41-
obs = self.get('/qiita_db/plugins/QIIME/1.9.0/', headers=self.header)
41+
obs = self.get('/qiita_db/plugins/QIIMEq2/1.9.0/', headers=self.header)
4242
self.assertEqual(obs.code, 404)
4343

4444
def test_get_no_header(self):
45-
obs = self.get('/qiita_db/plugins/QIIME/1.9.0/')
45+
obs = self.get('/qiita_db/plugins/QIIMEq2/1.9.0/')
4646
self.assertEqual(obs.code, 400)
4747

4848
def test_get(self):
49-
obs = self.get('/qiita_db/plugins/QIIME/1.9.1/', headers=self.header)
49+
obs = self.get('/qiita_db/plugins/QIIMEq2/1.9.1/', headers=self.header)
5050
self.assertEqual(obs.code, 200)
5151
exp = {
52-
'name': 'QIIME',
52+
'name': 'QIIMEq2',
5353
'version': '1.9.1',
5454
'description': 'Quantitative Insights Into Microbial Ecology '
5555
'(QIIME) is an open-source bioinformatics pipeline '
@@ -125,12 +125,12 @@ def test_get_command_does_not_exist(self):
125125

126126
def test_get_no_header(self):
127127
obs = self.get(
128-
'/qiita_db/plugins/QIIME/1.9.1/commands/Split%20libraries/')
128+
'/qiita_db/plugins/QIIMEq2/1.9.1/commands/Split%20libraries/')
129129
self.assertEqual(obs.code, 400)
130130

131131
def test_get(self):
132132
obs = self.get(
133-
'/qiita_db/plugins/QIIME/1.9.1/commands/Split%20libraries/',
133+
'/qiita_db/plugins/QIIMEq2/1.9.1/commands/Split%20libraries/',
134134
headers=self.header)
135135
self.assertEqual(obs.code, 200)
136136
exp = {'name': 'Split libraries',
@@ -195,20 +195,20 @@ def test_get(self):
195195

196196
class CommandActivateHandlerTests(OauthTestingBase):
197197
def test_post_command_does_not_exist(self):
198-
obs = self.post('/qiita_db/plugins/QIIME/1.9.1/commands/'
198+
obs = self.post('/qiita_db/plugins/QIIMEq2/1.9.1/commands/'
199199
'UNKNOWN/activate/',
200200
headers=self.header, data={})
201201
self.assertEqual(obs.code, 404)
202202

203203
def test_post_no_header(self):
204-
obs = self.post('/qiita_db/plugins/QIIME/1.9.1/commands/'
204+
obs = self.post('/qiita_db/plugins/QIIMEq2/1.9.1/commands/'
205205
'Split%20libraries/activate/', data={})
206206
self.assertEqual(obs.code, 400)
207207

208208
def test_post(self):
209209
qdb.software.Software.deactivate_all()
210210
self.assertFalse(qdb.software.Command(2).active)
211-
obs = self.post('/qiita_db/plugins/QIIME/1.9.1/commands/'
211+
obs = self.post('/qiita_db/plugins/QIIMEq2/1.9.1/commands/'
212212
'Split%20libraries/activate/', headers=self.header,
213213
data={})
214214
self.assertEqual(obs.code, 200)

qiita_db/handlers/tests/test_processing_job.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ class ProcessingJobAPItestHandlerTests(OauthTestingBase):
277277
def test_post_processing_job(self):
278278
data = {
279279
'user': '[email protected]',
280-
'command': dumps(['QIIME', '1.9.1', 'Pick closed-reference OTUs']),
280+
'command': dumps(['QIIMEq2', '1.9.1',
281+
'Pick closed-reference OTUs']),
281282
'parameters': dumps({"reference": 1,
282283
"sortmerna_e_value": 1,
283284
"sortmerna_max_pos": 10000,
@@ -298,7 +299,8 @@ def test_post_processing_job(self):
298299
def test_post_processing_job_status(self):
299300
data = {
300301
'user': '[email protected]',
301-
'command': dumps(['QIIME', '1.9.1', 'Pick closed-reference OTUs']),
302+
'command': dumps(['QIIMEq2', '1.9.1',
303+
'Pick closed-reference OTUs']),
302304
'status': 'running',
303305
'parameters': dumps({"reference": 1,
304306
"sortmerna_e_value": 1,

qiita_db/test/test_artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def test_merging_scheme(self):
472472
'QIIMEq2 v1.9.1'))
473473
self.assertEqual(qdb.artifact.Artifact(5).merging_scheme,
474474
('Pick closed-reference OTUs | Split libraries FASTQ',
475-
'QIIME v1.9.1'))
475+
'QIIMEq2 v1.9.1'))
476476

477477
def test_jobs(self):
478478
# Returning all jobs

qiita_db/test/test_meta_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,15 @@ def test_generate_biom_and_metadata_release(self):
465465
'processed_data/1_study_1001_closed_reference_otu_table.biom\t'
466466
'%s\t%s\t4\tIllumina\t16S rRNA\t'
467467
'Pick closed-reference OTUs | Split libraries FASTQ\t'
468-
'QIIME v1.9.1\tQIIME v1.9.1\n' % (fn_sample, fn_prep),
468+
'QIIMEq2 v1.9.1\tQIIMEq2 v1.9.1\n' % (fn_sample, fn_prep),
469469
'processed_data/1_study_1001_closed_reference_otu_table.biom\t'
470470
'%s\t%s\t5\tIllumina\t16S rRNA\t'
471471
'Pick closed-reference OTUs | Split libraries FASTQ\t'
472-
'QIIME v1.9.1\tQIIME v1.9.1\n' % (fn_sample, fn_prep),
472+
'QIIMEq2 v1.9.1\tQIIMEq2 v1.9.1\n' % (fn_sample, fn_prep),
473473
'processed_data/1_study_1001_closed_reference_otu_table_Silva.bio'
474474
'm\t%s\t%s\t6\tIllumina\t16S rRNA\t'
475475
'Pick closed-reference OTUs | Split libraries FASTQ'
476-
'\tQIIME v1.9.1\tQIIME v1.9.1' % (fn_sample, fn_prep)]
476+
'\tQIIMEq2 v1.9.1\tQIIMEq2 v1.9.1' % (fn_sample, fn_prep)]
477477
self.assertEqual(txt_obs, txt_exp)
478478

479479
# returning configuration

qiita_db/test/test_software.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,18 +711,18 @@ def test_from_file(self):
711711
self._clean_up_files.append(fp)
712712
with open(fp, 'w') as f:
713713
f.write(CONF_TEMPLATE %
714-
('QIIME', '1.9.1', 'Different description',
714+
('QIIMEq2', '1.9.1', 'Different description',
715715
'source activate qiime', 'start_qiime',
716716
'artifact transformation',
717717
'[["10.1038/nmeth.f.303", "20383131"]]', client_id,
718718
client_secret))
719719
with warnings.catch_warnings(record=True) as warns:
720720
obs = qdb.software.Software.from_file(fp)
721721
obs_warns = [str(w.message) for w in warns]
722-
exp_warns = ['Plugin "QIIME" version "1.9.1" config file does not '
723-
'match with stored information. Check the config file'
724-
' or run "qiita plugin update" to update the plugin '
725-
'information. Offending values: description, '
722+
exp_warns = ['Plugin "QIIMEq2" version "1.9.1" config file does '
723+
'not match with stored information. Check the config '
724+
'file or run "qiita plugin update" to update the '
725+
'plugin information. Offending values: description, '
726726
'environment_script, start_script']
727727
self.assertCountEqual(obs_warns, exp_warns)
728728

0 commit comments

Comments
 (0)