Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write tests #34

Open
yarons opened this issue Dec 5, 2021 · 0 comments
Open

Write tests #34

yarons opened this issue Dec 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@yarons
Copy link
Contributor

yarons commented Dec 5, 2021

Due to some recent request we've been looking some popular options to conduct Python tests.

Apparently there are many frameworks but FastAPI suppports Pytest natively:
https://fastapi.tiangolo.com/tutorial/testing/

So we will need to add tests per function and create a test workflow to make sure we're getting the expected results out of the system.

Set of the tests for implementation:

  1. Succesful login.
  2. Adding a user.
  3. Inviting cars at a specific date.
  4. Modify the number of invited cars and expected date/time.
  5. Removing an invitation.
  6. Promoting user to guard.
  7. Increasing the number of admitted cars as guard.
  8. Download all past events.

This is an async testing example:
https://testdriven.io/blog/fastapi-crud/

@yarons yarons added the enhancement New feature or request label Dec 5, 2021
@yarons yarons added this to To do in invitease-backend via automation Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant