Skip to content

[Feature Request] Add testing #66

@phoenixpereira

Description

@phoenixpereira

Overview

Add pytest as a testing framework and create several tests for each API endpoint.

Details

  • Add pytest as a testing framework
  • Create unit tests to check querying db, if a basic response returned is 200 for a valid API call, and error handling for invalid requests
  • Create about 5 integration tests for each API endpoint with both valid and invalid requests (/subjects, /courses, /courses/{cid})

Why would this feature be useful?

To ensure no regressions.

Additional Notes

Some previous work has been done at #15.
#65 should be fixed first to ensure correct response codes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileenhancementNew feature or requesttesting

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions