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

Add testcases for the user endpoint #37

Merged
merged 5 commits into from
Jul 22, 2024
Merged

Add testcases for the user endpoint #37

merged 5 commits into from
Jul 22, 2024

Conversation

gridhead
Copy link
Member

Add test cases for the user endpoint

@gridhead gridhead self-assigned this Jul 18, 2024
@gridhead gridhead marked this pull request as draft July 18, 2024 08:27
Signed-off-by: Mehmet Baran Geylani <[email protected]>
Copy link
Member Author

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far so good, @brngylni.

(venv) [archdesk@archdesk webhook-to-fedora-messaging]$ pytest -vvv tests/
============================================================================== test session starts ===============================================================================
platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /home/archdesk/Projects/webhook-to-fedora-messaging/venv/bin/python
cachedir: .pytest_cache
rootdir: /home/archdesk/Projects/webhook-to-fedora-messaging
configfile: pyproject.toml
plugins: cov-5.0.0
collected 12 items

tests/test_user/test_user_create.py::test_user_create[USER Endpoint - 201 Created] PASSED                                                                                  [  8%]
tests/test_user/test_user_create.py::test_user_create[USER Endpoint - 409 Conflict] PASSED                                                                                 [ 16%]
tests/test_user/test_user_create.py::test_user_create[USER Endpoint - 400 Bad Request] PASSED                                                                              [ 25%]
tests/test_user/test_user_create.py::test_user_create[USER Endpoint - 415 Unsupported Media Type] PASSED                                                                   [ 33%]
tests/test_user/test_user_get.py::test_user_get[USER Endpoint - 200 Success] PASSED                                                                                        [ 41%]
tests/test_user/test_user_get.py::test_user_get[USER Endpoint - 404 Not Found] PASSED                                                                                      [ 50%]
tests/test_user/test_user_get.py::test_user_get[USER Endpoint - 400 Bad Request] PASSED                                                                                    [ 58%]
tests/test_user/test_user_get.py::test_user_get[USER Endpoint - 415 Unsupported Media Type] PASSED                                                                         [ 66%]
tests/test_user/test_user_lookup.py::test_user_lookup[USER Endpoint - 200 Success] PASSED                                                                                  [ 75%]
tests/test_user/test_user_lookup.py::test_user_lookup[USER Endpoint - 404 Not Found] PASSED                                                                                [ 83%]
tests/test_user/test_user_lookup.py::test_user_lookup[USER Endpoint - 400 Bad Request] PASSED                                                                              [ 91%]
tests/test_user/test_user_lookup.py::test_user_lookup[USER Endpoint - 415 Unsupported Media Type] PASSED                                                                   [100%]

=============================================================================== 12 passed in 0.06s ===============================================================================

@gridhead gridhead marked this pull request as ready for review July 22, 2024 08:27
@gridhead gridhead merged commit 65b1113 into main Jul 22, 2024
4 of 10 checks passed
@gridhead gridhead deleted the test branch July 22, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants