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

Create test cases to help unit testing CSRF module #96

Open
notzippy opened this issue Nov 4, 2018 · 2 comments
Open

Create test cases to help unit testing CSRF module #96

notzippy opened this issue Nov 4, 2018 · 2 comments

Comments

@notzippy
Copy link
Contributor

notzippy commented Nov 4, 2018

In order to do form posting you must pass the csrf value back to the server. This request is to create a helper test case to perform this. Simply extending the existing testcases and adding a CSRForm post method should suffice.

See #83

@Jaywalker
Copy link

Writing some testcases for my app right now and I'm up against this wall. Any easy workarounds for this? I've tried using PostFormCustom and adding a referer header manually, but I'm getting unsupported protocol scheme "" on my .Send() call. Probably something obvious that I'm missing, but it's late.

@notzippy
Copy link
Contributor Author

There is a community here which should be able to help you

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