adsabs / biblib-service

ADS library service
https://ui.adsabs.harvard.edu
MIT License
4 stars 8 forks source link

stuck on test #92

Closed aholachek closed 8 years ago

aholachek commented 8 years ago

@jonnybazookatone whenever you get a chance could you please look at the tests and tell me what I may be doing wrong here? I get the following messages when I try to run the first test:

User does not exist in database: 10 [API] Library missing or solr endpoint failed: No row was found for one()

aholachek commented 8 years ago

yet another question: the new error I'm getting is

Could not apply config from consul: HTTPConnectionPool(host='localhost', port=8500): Max retries exceeded with url: /v1/kv/config/generic_service/generic_environment/?recurse=None (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x106b7ec90>: Failed to establish a new connection: [Errno 61] Connection refused',))

jonnybazookatone commented 8 years ago

Looks like a rogue error unrelated to your underlying problem. If the consul config isn't loaded it just ignores it, but still writes a warning to the log.

jonnybazookatone commented 8 years ago

Looking at travis, the main problems you're having are given in the tracebacks.

Traceback (most recent call last):

  File "/home/travis/build/adsabs/biblib-service/biblib/tests/unit_tests/test_views.py", line 826, in test_that_solr_data_is_returned

    bibcodes=library.bibcode

TypeError: solr_big_query() takes exactly 5 arguments (1 given)

and

Traceback (most recent call last):

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName

    addr.filename, addr.module)

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath

    return self.importFromDir(dir_path, fqname)

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir

    mod = load_module(part_fqname, fh, filename, desc)

  File "/home/travis/build/adsabs/biblib-service/biblib/tests/unit_tests/test_pagination.py", line 110

    params={

         ^

SyntaxError: invalid syntax
coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling 9eddd703f45e63b659a0776ab2948090cd8993e0 on aholachek:feature/pagination into \ on adsabs:master**.

coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling 51c7b71ca75777bb0dff2069ee93fb48b7e05009 on aholachek:feature/pagination into \ on adsabs:master**.