Skip to content

Commit

Permalink
Add utility functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Azakh993 committed Feb 19, 2024
1 parent 8fa8254 commit b9c0dd1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/utilities/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,15 @@ def remove_application_components_from_db(app):
Availability.query.delete()
CompetenceProfile.query.delete()
database.session.commit()


def application_route_post_request(test_client, token, payload):
return test_client.post('/api/application-form/submit/',
headers={'Authorization': f'Bearer {token}'},
json=payload)


def add_application_status_for_user_1(app):
with app.app_context():
database.session.add(ApplicationStatus(person_id=1))
database.session.commit()

0 comments on commit b9c0dd1

Please sign in to comment.