Skip to content

unit testing the connectors #35

@RogerTangos

Description

@RogerTangos

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions