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

386 create mock data #403

Closed
wants to merge 9 commits into from
Closed

386 create mock data #403

wants to merge 9 commits into from

Conversation

danielzeljko
Copy link
Contributor

@danielzeljko danielzeljko commented Jan 8, 2024

fixes #386

This PR adds a management command that will generate mock project data. Data is generated through Faker. There is a slight chance that the script may crash when generating fake users because of a duplicate username. I didn't think it was necessary to handle that edge case. All generated users will have their password set to password.

Edit: I'd love some feedback on this as I haven't done anything like this before!

Adds a factory to mark sentences as perfect and the post as corrected
Adds a simple management command that runs migrations and generates mock project data. Content is being generated through Faker. There is a chance that the username can contain duplicates, but with the default sample size being small (100 users), I didn't feel it was necessary to handle those edge cases.
@danielzeljko danielzeljko deleted the 386-create-mock-data branch March 12, 2024 03:56
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.

Create management command to populate mock data
1 participant