Skip to content

Commit

Permalink
Solving py2-3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
josenavas committed May 23, 2017
1 parent ce2b3b8 commit 5f536a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qiita_client/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ def func(qclient, job_id, job_params, working_dir):
obs = self.qclient.get('/qiita_db/plugins/NewPlugin/0.0.1/')
self.assertEqual(obs['name'], 'NewPlugin')
self.assertEqual(obs['version'], '0.0.1')
self.assertItemsEqual(obs['commands'], ['NewCmd', 'NewCmdAnalysis'])
# I can't use assertItemsEqual because it is not available in py3
# and I can't user assertCountEqual because it is not avaialable in py2
self.assertEqual(sorted(obs['commands']),
sorted(['NewCmd', 'NewCmdAnalysis']))

# Create a new job
data = {'command': dumps(['NewPlugin', '0.0.1', 'NewCmd']),
Expand Down

0 comments on commit 5f536a6

Please sign in to comment.