Skip to content

fix: absence date faker giving weekend dates that are failing the tests#1117

Closed
MitanOmar wants to merge 1 commit intoadfinis:mainfrom
MitanOmar:fixing-backend-absence-tests
Closed

fix: absence date faker giving weekend dates that are failing the tests#1117
MitanOmar wants to merge 1 commit intoadfinis:mainfrom
MitanOmar:fixing-backend-absence-tests

Conversation

@MitanOmar
Copy link
Copy Markdown
Member

@MitanOmar MitanOmar commented Mar 16, 2026

fix: #1116 backend tests in CI/CD
fix: #1111 backend tests in CI/CD

@MitanOmar MitanOmar changed the title absence date faker giving weekend dates that is failing the tests absence date faker giving weekend dates that are failing the tests Mar 16, 2026
@MitanOmar MitanOmar requested a review from trowik March 16, 2026 18:41
@MitanOmar MitanOmar marked this pull request as ready for review March 16, 2026 18:41
@MitanOmar MitanOmar requested a review from a team as a code owner March 16, 2026 18:41
Comment thread backend/timed/tracking/tests/test_absence.py Outdated
@derrabauke
Copy link
Copy Markdown
Member

pls stick to conventional commit naming

@MitanOmar MitanOmar force-pushed the fixing-backend-absence-tests branch 2 times, most recently from edf2281 to 6c4ff65 Compare March 19, 2026 12:51
@MitanOmar MitanOmar requested a review from derrabauke March 19, 2026 12:56
@MitanOmar MitanOmar changed the title absence date faker giving weekend dates that are failing the tests fix: absence date faker giving weekend dates that are failing the tests Mar 19, 2026
winged
winged previously approved these changes Mar 19, 2026
Copy link
Copy Markdown
Member

@winged winged left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

Comment thread backend/timed/tracking/factories.py Outdated
Comment thread backend/timed/tracking/factories.py Outdated
Comment thread backend/timed/tracking/factories.py
@MitanOmar MitanOmar force-pushed the fixing-backend-absence-tests branch 2 times, most recently from 45329c1 to 63a59c8 Compare March 25, 2026 15:36
@MitanOmar MitanOmar requested review from derrabauke and winged March 25, 2026 15:37
@winged
Copy link
Copy Markdown
Member

winged commented Mar 25, 2026

Code LGTM; but this needs to be one commit instead of 3

@MitanOmar
Copy link
Copy Markdown
Member Author

Code LGTM; but this needs to be one commit instead of 3

it's going to be squash and merge

@MitanOmar MitanOmar force-pushed the fixing-backend-absence-tests branch 2 times, most recently from 2fa526a to 32494f3 Compare March 25, 2026 17:45
@MitanOmar MitanOmar enabled auto-merge (squash) March 27, 2026 01:38
@winged
Copy link
Copy Markdown
Member

winged commented Mar 27, 2026

Code LGTM; but this needs to be one commit instead of 3

it's going to be squash and merge

Please squash manually and write a nice commit message, then we can merge it

@MitanOmar MitanOmar force-pushed the fixing-backend-absence-tests branch from 32494f3 to 58d157b Compare March 27, 2026 17:31
@MitanOmar
Copy link
Copy Markdown
Member Author

Code LGTM; but this needs to be one commit instead of 3

it's going to be squash and merge

Please squash manually and write a nice commit message, then we can merge it

@winged implemented

Copy link
Copy Markdown
Member

@winged winged left a comment

Choose a reason for hiding this comment

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

LGTM now, thanks!

@@ -79,6 +79,18 @@ class AbsenceFactory(DjangoModelFactory):
absence_type = SubFactory("timed.employment.factories.AbsenceTypeFactory")
date = Faker("date")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
date = Faker("date")

we don't need to declare date twice, otherwise lgtm

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@c0rydoras can you please try removing it, and running the tests ?

@c0rydoras
Copy link
Copy Markdown
Collaborator

superseded by #1148

@c0rydoras c0rydoras closed this Apr 2, 2026
auto-merge was automatically disabled April 2, 2026 12:35

Pull request was closed

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.

4 participants