Closed boxxxie closed 10 years ago
oops, put in quotes in the creds file when i wasn't supposed to. :/
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.
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
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?