-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels