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

Make it easy to test apps #47

Open
jedateach opened this issue Apr 23, 2014 · 1 comment
Open

Make it easy to test apps #47

jedateach opened this issue Apr 23, 2014 · 1 comment

Comments

@jedateach
Copy link
Contributor

It is tricky to write unit tests for apps that use the omnipay module. You currently need to replicate much of the setup used in the omnipay tests.

Currently difficult:

  • Making use of mocking
  • Getting the correct PaymentGatewayController endpoint to call for mimicking off-site redirects & callbacks.

This needs to be documented.

It may be worth making this improvement at the same time as upgrading to omnipay v2 #23

Also, worth documenting is how to mimic another running session, by creating a new TestSession during the test.

@jedateach
Copy link
Contributor Author

Related #71

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

No branches or pull requests

2 participants