adamwynne / twitter-api

Async io interface to all the twitter APIs
372 stars 64 forks source link

tests don't pass #54

Closed boxxxie closed 10 years ago

boxxxie commented 10 years ago
Ran 48 tests containing 102 assertions.
3 failures, 37 errors.
Tests failed.

a lot of the errors are actual: java.lang.Exception: Twitter responded to request with error 215: Bad Authentication data

however, i think i put in the correct creds, as the rest of the tests worked. do only 40 tests require creds?

boxxxie commented 10 years ago

oops, put in quotes in the creds file when i wasn't supposed to. :/

boxxxie commented 10 years ago
Ran 48 tests containing 111 assertions.
0 failures, 3 errors.
Tests failed.

so, i'm getting 3 errors when running the tests after figuring out how to do a correct credentials files.

lein test :only twitter.api.test.restful/test-user

ERROR in (test-user) (NativeConstructorAccessorImpl.java:-2)
expected: (clojure.core/= (clojure.core/get-in (users-contributees :oauth-creds (twitter.test.creds/make-test-creds) :params {:user-id user-id}) [:status :code]) 200)
  actual: java.lang.Exception: Twitter responded to request with error 87: Client is not permitted to perform this action.
lein test :only twitter.api.test.restful/test-direct-messages

ERROR in (test-direct-messages) (NativeConstructorAccessorImpl.java:-2)
expected: (clojure.core/= (clojure.core/get-in (direct-messages-sent :oauth-creds (twitter.test.creds/make-test-creds)) [:status :code]) 200)
  actual: java.lang.Exception: Twitter responded to request with error 93: This application is not allowed to access or delete your direct messages.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

lein test twitter.api.test.restful

lein test :only twitter.api.test.restful/test-direct-messages

ERROR in (test-direct-messages) (NativeConstructorAccessorImpl.java:-2)
expected: (clojure.core/= (clojure.core/get-in (direct-messages :oauth-creds (twitter.test.creds/make-test-creds)) [:status :code]) 200)
  actual: java.lang.Exception: Twitter responded to request with error 93: This application is not allowed to access or delete your direct messages.
adamwynne commented 10 years ago

the contributees is weird and have removed it (error 87?), but the others are because your test creds are from an app token that has not been approved for direct messages