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

Unique constraints for factory boy (fixes #241) #278

Merged

Conversation

stanislawK
Copy link
Contributor

@stanislawK stanislawK commented May 6, 2020

Story / Bug id:

241

Description:

custom _create method which filters db in order to avoid duplicates in all factories
commiting session after every create() to make possible filtering db for every obj

Migrations:

N/A

New imports / dependencies:

N/A

What tests do I need to run to validate this change:

run make test few times
run make populate_database
There should be no errors due to unique constraints

Copy link
Contributor

@jacekkalbarczyk jacekkalbarczyk left a comment

Choose a reason for hiding this comment

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

Tested multiple times, no errors, seems to be ok.

@w1stler w1stler merged commit 5927952 into CodeForPoznan:master May 27, 2020
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.

3 participants