Commit cc3213c6 authored by carlosribas's avatar carlosribas
Browse files

Fix unit tests

parent 6009d537
...@@ -411,7 +411,7 @@ class FiltersTestCase(ApiV1BaseClass): ...@@ -411,7 +411,7 @@ class FiltersTestCase(ApiV1BaseClass):
for filter in filters: for filter in filters:
url = reverse('rna-sequences') url = reverse('rna-sequences')
response = self._test_url(url, data=filter) response = self._test_url(url, data=filter)
self.assertNotEqual(response.data['count'], 0) self.assertNotEqual(response.data['results'], [])
# TODO: check portal/models/database.py file, line 110. GENCODE was renamed. # TODO: check portal/models/database.py file, line 110. GENCODE was renamed.
def _test_bad_database_filter(self): def _test_bad_database_filter(self):
...@@ -433,7 +433,7 @@ class FiltersTestCase(ApiV1BaseClass): ...@@ -433,7 +433,7 @@ class FiltersTestCase(ApiV1BaseClass):
for external_id in external_ids: for external_id in external_ids:
url = reverse('rna-sequences') url = reverse('rna-sequences')
response = self._test_url(url, data={'external_id': external_id}) response = self._test_url(url, data={'external_id': external_id})
self.assertNotEqual(response.data['count'], 0, 'Failed on %s' % url) self.assertNotEqual(response.data['results'], [], 'Failed on %s' % url)
class SpeciesSpecificIdsTestCase(ApiV1BaseClass): class SpeciesSpecificIdsTestCase(ApiV1BaseClass):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment