Created
March 23, 2015 19:23
-
-
Save wtneal/1fd30fd1f0f9b89c9414 to your computer and use it in GitHub Desktop.
App test errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ensures that the app.geolocator.LocationHits successfully initializes ... ok | |
Tests :func:`app.geolocator.LocationHits.increment_weight_on_match` ... ok | |
Ensures that the app.geolocator.LocationHits successfully initializes ... ok | |
Tests :func:`app.geolocator.LocationHits.__iter__` ... ok | |
Tests :func:`app.geolocator.LocationHits.__len__` ... ok | |
Tests :func:`app.geolocator.LocationHits.next` ... ok | |
Tests :func:`app.geolocator.LocationHits.__repr__` ... ok | |
Tests the "getter" functions for the locationwrapper ... ok | |
Ensures that the LocationWrap successfully initializes ... ok | |
Tests preprocesstext function as well as tokenize and removepunctuation ... ok | |
Tests :func:'app.nlp.LocationTagger._RemovePunctuations' ... ok | |
test_Repr (app.tests.test_nlp.LocationTaggerTests) ... ok | |
Tests the TagLocations function which utilizes and also tests the preprocess, tag, ... ERROR | |
Tests :func:'app.nlp.LocationTagger._Tokenize' ... ok | |
Ensures that the nlp.LocationTagger successfully initializes ... ok | |
Tests the tagger's tagging ability ... ERROR | |
Tests the tagger's tagging ability ... ERROR | |
Tests the tagger's behavior when given an empty set of tokens ... ERROR | |
Verifies that the tagger does not stop at the following symbols: ... ERROR | |
Verifies that the tagger does not stop at parenthesises. ... ERROR | |
Verifies that the tagger stops at the following symbols: ... ERROR | |
Ensures that the nlp.StanfordNerTagger successfully initializes ... ok | |
test_repre (app.tests.test_nlp.StanfordNerTaggerTests) ... ok | |
Tests AdminNameGetter._admin1name ... ok | |
Tests AdminNameGetter.adminnames with accuracy of 3 ... ok | |
Tests AdminNameGetter._countryname ... ok | |
Ensures that the app.weighter.AdminNameGetter successfully initializes ... ok | |
Tests AdminNameGetter._sql_admin1code ... ok | |
Tests AdminNameGetter._sql_admin2code ... ok | |
Tests AdminNameGetter._sql_admin3code ... ok | |
Tests AdminNameGetter._sql_admin4code ... ok | |
Tests AdminNameGetter._sql_countrycode ... ok | |
Tests AdminNameGetter._sql_featurecode ... ok | |
Tests app.weighter.LocationAdminCodes.__eq__ with two different objects ... ok | |
Tests app.weighter.LocationAdminCodes.__eq__ with two equal objects ... ok | |
Ensures that the weighter.LocationAdminCodes successfully initializes ... ok | |
Tests app.weighter.LocationAdminCodes.__repr__ ... ok | |
Tests app.weighter.LocationAdminNames.__eq__ with two different objects ... ok | |
Tests app.weighter.LocationAdminNames.__eq__ with two equal objects ... ok | |
Ensures that the weighter.LocationAdminNames successfully initializes ... ok | |
Tests app.weighter.LocationAdminNames.list ... ok | |
Tests app.weighter.LocationAdminNames.__repr__ ... ERROR | |
test__get_admin_codes__pass (app.tests.test_weighter.WeightifierTestCase) ... ok | |
Ensures that the weighter.Weightifier successfully initializes ... ok | |
Tests weighter.Weightifier._make_admin_codes with accuracy of 0 ... ok | |
Tests weighter.Weightifier._make_admin_codes with accuracy of 5 ... ok | |
====================================================================== | |
ERROR: Tests the TagLocations function which utilizes and also tests the preprocess, tag, | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 275, in test_TagLocations | |
tagged = self.Tagger.TagLocations(pretext) | |
File "/code/geolocator/app/nlp.py", line 156, in TagLocations | |
tagged = self.Tagger.Tag(text) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Tests the tagger's tagging ability | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 177, in test_Tag_1 | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Tests the tagger's tagging ability | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 193, in test_Tag_2 | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Tests the tagger's behavior when given an empty set of tokens | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 205, in test_Tag_empty | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Verifies that the tagger does not stop at the following symbols: | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 149, in test_Tag_symbols_continue | |
self.symbolTest(symbols, expect_stop=False) | |
File "/code/geolocator/app/tests/test_nlp.py", line 108, in symbolTest | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Verifies that the tagger does not stop at parenthesises. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 160, in test_Tag_symbols_parens | |
symbol_tuple=(u'-LRB-', OTHER)) | |
File "/code/geolocator/app/tests/test_nlp.py", line 108, in symbolTest | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Verifies that the tagger stops at the following symbols: | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_nlp.py", line 135, in test_Tag_symbols_stop | |
self.symbolTest(symbols, expect_stop=True) | |
File "/code/geolocator/app/tests/test_nlp.py", line 108, in symbolTest | |
actual = self.Tagger.Tag(tokens) | |
File "/code/geolocator/app/nlp.py", line 46, in Tag | |
entities = self.Tagger.tag(text) | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 59, in tag | |
return self.tag_sents([tokens])[0] | |
File "/usr/local/lib/python2.7/site-packages/nltk/tag/stanford.py", line 81, in tag_sents | |
stdout=PIPE, stderr=PIPE) | |
File "/usr/local/lib/python2.7/site-packages/nltk/internals.py", line 159, in java | |
print(stderr.decode(sys.stdout.encoding)) | |
AttributeError: StringIO instance has no attribute 'encoding' | |
====================================================================== | |
ERROR: Tests app.weighter.LocationAdminNames.__repr__ | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/code/geolocator/app/tests/test_weighter.py", line 104, in test__repr__good | |
s = self.codes.__repr__() | |
AttributeError: 'LocationAdminNamesTestCase' object has no attribute 'codes' | |
---------------------------------------------------------------------- | |
Ran 46 tests in 45.515s | |
FAILED (errors=8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment