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

unit testing the connectors #35

Open
RogerTangos opened this issue Nov 18, 2014 · 0 comments
Open

unit testing the connectors #35

RogerTangos opened this issue Nov 18, 2014 · 0 comments

Comments

@RogerTangos
Copy link
Contributor

Now that the FUNF and OpenSense connectors are both working, we need to start working out testing. The amount of time that I've sunk into manually doing integration testing is pretty extreme, so I'm inclined to think that testing will considerably speed things up.

Here's how I think that the problem should be approached. I'm not a django programmer, so would really welcome feedback and insight into this (@bradmontgomery, @patcon, @chieni, @mitchellgu ):

  • Stub out the authorization server, so that the project can be testing without it:
authorization = PDSAuthorization("ios_write", audit_enabled=True)
  • Unit test each of the opensense/views.py and funf/views.py methods
  • use django.test.client to make test requests to the connectors, and actually simulate testing data into a special Mongo collection. (If we can't use a special test collection, delete the data from mongo after testing.)

Thoughts?

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

1 participant