
utils.py
About this file
This file contains helper functions, such as clearing the database, that are used for testing.
Code Issues
- Needs a comment stating why it is necessary to reverse the sorted tables on line 21.
-
create_request
function appears to be incomplete. Will the function be used? If so, there needs to be a comment stating what its purpose is and how it will be used.
Code Check Report
tests/helpers/utils.py:7:1: F401 'pytest' imported but unused tests/helpers/utils.py:10:1: F401 'app.models.Requests' imported but unused tests/helpers/utils.py:12:1: E302 expected 2 blank lines, found 1 tests/helpers/utils.py:33:9: W292 no newline at end of file
Documentation drawn from source code
helper.utils ModuleThis module contains helper functions for running tests.
clear_data(db: SQLAlchemy):
Clear the data in the database after a test.Args:db (SQLAlchemy): Instance of the database.Returns:
create_request():
Returns: