Skip to content

Common functions in API unit test modules should be moved to utils #33

Description

@NamesJ

Modules in the tests package for testing API resources in certain namespaces (e.g. test_transfer_api.py', 'test_offer_api.py') repeat similar code for functions which use a session client to send a request and return a response -- functions usually named something like create_()', get_<entity>_data(), etc.. For example in test_transfer_api.py, the function get_transfer_data().

Because resources are designed such that request data (if any) is expected to always be JSON, the implementation of these functions are (usually) virtually identical.

So I think they should be consolidated somewhere in utils sub-package of the tests package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions