-
Notifications
You must be signed in to change notification settings - Fork 11
Parametrize Factories to support different sessions + make memory-db proper fixture #129
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
base: develop
Are you sure you want to change the base?
Parametrize Factories to support different sessions + make memory-db proper fixture #129
Conversation
b0c583f to
900b7d8
Compare
w1stler
left a comment
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.
Let’s discuss offline. :)
PS we could run codespell on that repository to find spelling errors.
| def _rspo(self): | ||
| """ | ||
| As we encountered discrticts without any RSPO, instead of choosing random district | ||
| and then choosing random RSPO from that disctrict only, we shuffle district from provnce |
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.
provnce typo
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.
discrticts typo
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.
disctrict typo :D
| """ | ||
| As we encountered discrticts without any RSPO, instead of choosing random district | ||
| and then choosing random RSPO from that disctrict only, we shuffle district from provnce | ||
| and then we settle with first district, that contains at least one RSOP. |
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.
RSOP typo
| @lazy_attribute | ||
| def meeting_time(self): | ||
| """ | ||
| Lets limit ourselelves to working hours and 5-minute increment. |
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.
ourselelves typo
| if self.issue in [Issue.INDYWIDUALNE.value, Issue.INDYWIDUALNE_ROCZNE]: | ||
| return ( | ||
| f"{date.today().strftime(DATE_FORMAT)} -" | ||
| f" {faker.future_date(end_date=timedelta(weeks=50)).strftime(DATE_FORMAT)}" |
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.
Please move that space to line above for improved readability. ;-)
No description provided.