-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1281 from frappe/version-14-hotfix
chore: release v14
- Loading branch information
Showing
14 changed files
with
173 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,7 +227,7 @@ def test_multiple_shift_assignments_for_same_day(self): | |
date = getdate() | ||
make_shift_assignment(shift_type.name, employee, date) | ||
|
||
def test_shift_assignment_calendar(self): | ||
def test_calendar(self): | ||
employee1 = make_employee("[email protected]", company="_Test Company") | ||
employee2 = make_employee("[email protected]", company="_Test Company") | ||
|
||
|
@@ -242,6 +242,17 @@ def test_shift_assignment_calendar(self): | |
self.assertEqual(len(events), 1) | ||
self.assertEqual(events[0]["name"], shift1.name) | ||
|
||
def test_calendar_for_night_shift(self): | ||
employee1 = make_employee("[email protected]", company="_Test Company") | ||
|
||
shift_type = setup_shift_type(shift_type="Shift 1", start_time="08:00:00", end_time="02:00:00") | ||
date = getdate() | ||
shift = make_shift_assignment(shift_type.name, employee1, date, date) | ||
|
||
events = get_events(start=date, end=date) | ||
self.assertEqual(events[0]["start_date"], get_datetime(f"{date} 08:00:00")) | ||
self.assertEqual(events[0]["end_date"], get_datetime(f"{add_days(date, 1)} 02:00:00")) | ||
|
||
def test_consecutive_day_and_night_shifts(self): | ||
# defaults | ||
employee = make_employee("[email protected]", company="_Test Company") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...er)/employees_joining_(next_quarter).json → ...er)/employees_joining_(this_quarter).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.