Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_login fails and directory structure incorrectly setup #1

Open
angusb opened this issue Jun 22, 2012 · 1 comment
Open

test_login fails and directory structure incorrectly setup #1

angusb opened this issue Jun 22, 2012 · 1 comment

Comments

@angusb
Copy link

angusb commented Jun 22, 2012

I encounter this error after running tests.py (on a freshly checked out master branch):

[master] angusb@~/Desktop/pyfoo: python tests.py

.............E............

ERROR: test_login (main.TestLogin)

Traceback (most recent call last):
File "tests.py", line 243, in test_login
api = PyfooAPI(email="email", password="password", integration_key="integration_key")
File "/Users/angusb/Desktop/pyfoo/pyfoo.py", line 238, in init
response = self.make_call(url, data, 'POST')
File "/Users/angusb/Desktop/pyfoo/pyfoo.py", line 258, in make_call
response = opener.open(request)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: You must provide both a email and password, and integration key to continue.


Ran 26 tests in 1.921s

FAILED (errors=1)

Furthermore, if I run from one directory higher - python pyfoo/tests.py all tests fail. It seems as if the scripts directory is found relative to where the current directory is. This seems like a mistake - or is this intentional?

Thanks.

@amites
Copy link

amites commented Jul 9, 2013

Seems like this project has been abandoned by wufoo, the account login for the tests is no longer valid...

I'm working on a fork to clean up a few things but not sure how to fix the tests since I'm not about to hand out credentials...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants