CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

3 Tests Failing in ambry/test/test_library/functional/test_search_backends.py #130

Closed ericbusboom closed 8 years ago

ericbusboom commented 8 years ago

There are three tests failing in test_search_backends.py:

test_search.py

Failure
Traceback (most recent call last):
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 263, in test_search_by
    self._assert_finds_partition(partition, 'by county')
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 38, in _assert_finds_partition
    self.assertIn(partition.vid, all_vids)
AssertionError: u'p000000001003001' not found in []

test_search_dataset_by_source

Failure
Traceback (most recent call last):
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 86, in test_search_dataset_by_source
    self._assert_finds_dataset(dataset, 'source example.com')
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 33, in _assert_finds_dataset
    self.assertIn(dataset.vid, all_vids)
AssertionError: u'd000000001001' not found in []

test_search_in.py

Failure
Traceback (most recent call last):
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 244, in test_search_in
    self._assert_finds_partition(partition, 'in California')
  File "/Users/eric/proj/virt/ambry-develop/ambry/test/test_library/functional/test_search_backends.py", line 38, in _assert_finds_partition
    self.assertIn(partition.vid, all_vids)
AssertionError: u'p000000001004001' not found in []
nmb10 commented 8 years ago

No errors for me:

py.test test/test_library/functional/test_search_backends.py --verbose
===== 63 passed in 56.43 seconds =======

What tests are broken exactly? You can use --verbose option for detailed output.

ericbusboom commented 8 years ago

test_search_by test_search_dataset_by_source test_search_in

nmb10 commented 8 years ago

These tests are shared between some backends:

WhooshBackendTest::test_search_by
SQLiteBackendTest::test_search_by
PostgreSQLBackendTest::test_search_by

Which backend tests are broken?

ericbusboom commented 8 years ago

On Oct 20, 2015, at 8:26 AM, Kazbek notifications@github.com wrote:

These tests are shared between some backends:

WhooshBackendTest::test_search_by SQLiteBackendTest::test_search_by PostgreSQLBackendTest::test_search_by Which backend tests are broken

Sqlite.


Eric Busboom (619) 363 2607
eric@busboom.org http://www.busboom.org

nmb10 commented 8 years ago

Can you update code and try again? There are some changes from other issue.

ericbusboom commented 8 years ago

Ok, but it may take a while, as there are currently a lot of tests failing.