-
Notifications
You must be signed in to change notification settings - Fork 45
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
[44] unit tests for contact us endpoint #46
[44] unit tests for contact us endpoint #46
Conversation
backend/tests/conftest.py
Outdated
msg = {"name": "TestName", | ||
"email": "[email protected]", | ||
"phone": "777222333", | ||
"content": "Lorem Ipsum cos tam cos tam"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor stuff
backend/tests/test_contact_us.py
Outdated
GIVEN an application instance, valid message, and mocked email outbox | ||
WHEN sending valid contact message to send-email endpoint | ||
THEN check status code, message, and email outbox | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in previous PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just typo. ;-)
|
||
|
||
def test_contact_us_endpoint(client, new_msg): | ||
"""Test sending valid message to send-email enndoint.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpoint
@kristhina review, please (make start, make bash, make test) |
To run tests: