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

Test/login mockapi test #209

Merged
merged 3 commits into from
May 5, 2024
Merged

Test/login mockapi test #209

merged 3 commits into from
May 5, 2024

Conversation

lihuacai168
Copy link
Owner

No description provided.

…endencies

In this commit, unit tests for mockapi serializers and login views are added to ensure proper functionality. Database model changes include addition of new columns and alteration of existing columns in 'MockAPI' model. Project dependencies are also updated with the addition of pytest. Last but not the least, login views have been updated for returning appropriate HTTP status codes and URL configurations updated.
A GitHub Actions workflow for running pytest and coverage has been added to the project. In addition, a modification to the Django model has been made to alter the "first_name" field for the "MyUser" model.
This commit adds a new model called `MockAPIResponseHandler` to the `mock` app. The model includes fields for creating and updating time, creator and updater information, condition expression, response set value expression, response set value, enabled status, and a foreign key to the `MockAPI` model. This model will be used to handle responses for mock API requests.

feat(mock): add description and name fields to MockAPIResponseHandler

This commit adds two new fields, `description` and `name`, to the `MockAPIResponseHandler` model in the `mock` app. The `description` field is a text field for providing a description of the response handler, and the `name` field is a character field with an index for storing the name of the response handler.
@lihuacai168 lihuacai168 merged commit d2d2981 into master May 5, 2024
6 checks passed
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