Skip to content

Tests for user endpoint #37

@nicole-mcg

Description

@nicole-mcg

A test should be created for the user endpoint.

This test will require the create_object function in file_server/util to create the objects the function needs. There is an example of this function's usage in file_server/web/endpoints/__test__/test_active_clients.py

Tests:

  • Verify response has "error" key and value is "Needs auth"
  • Verify name and refresh_rate keys in response are correct and there are no extra keys

An example test can be found at file_server/file/__test__/test_snapshot.py

Test naming conventions: https://pytest.readthedocs.io/en/reorganize-docs/new-docs/user/naming_conventions.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    back endPythongood first issueGood for newcomersstructureThis will make something more clear and less prone to programming errors

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions