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

Auth breaks the api unit tests #1

Open
tobami opened this issue Oct 15, 2010 · 1 comment
Open

Auth breaks the api unit tests #1

tobami opened this issue Oct 15, 2010 · 1 comment
Labels

Comments

@tobami
Copy link
Owner

tobami commented Oct 15, 2010

After implementing user authentication, all api unit tests ceased to work. I have tried different ways to implement authenticated tests, but Piston always returns 401.

See http://thomas.pelletier.im/2009/12/test-your-django-piston-api-with-auth/ for an approach, as well as the 0.1 code.

This could very well be a Piston 0.2.2 bug, as stated by some reports.
Also, if we reimplemented Api auth with OAuth, it would also probably go away

@tobami
Copy link
Owner Author

tobami commented Oct 29, 2010

For the moment I implemented a workaround, by having unit tests use a test_urls.py that deactivates authentication

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

No branches or pull requests

1 participant