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

fix(test): Leave Allocation validation against Leave Application after submit #29005

Merged
merged 3 commits into from
Dec 23, 2021

Conversation

ruchamahabal
Copy link
Member

Problem:

image

Test failing as the test data considers days in Feb (edge case): 23/2/2022 - 2/3/2022 (8 days). But the test assumes 11 days (as in a normal month), hence validation error is not raised.

Fix:

Use dynamic leave allocation instead of hardcoded values.

@codecov
Copy link

codecov bot commented Dec 23, 2021

Codecov Report

Merging #29005 (1d7b66e) into develop (f6d5534) will increase coverage by 6.28%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #29005      +/-   ##
===========================================
+ Coverage    49.33%   55.61%   +6.28%     
===========================================
  Files         1128     1128              
  Lines        67291    67291              
===========================================
+ Hits         33197    37423    +4226     
+ Misses       34094    29868    -4226     
Impacted Files Coverage Δ
...work_order_stock_report/work_order_stock_report.py 50.00% <0.00%> (-50.00%) ⬇️
erpnext/assets/doctype/asset/depreciation.py 84.93% <0.00%> (-2.74%) ⬇️
...ctype/accounting_dimension/accounting_dimension.py 64.06% <0.00%> (-1.57%) ⬇️
...e/period_closing_voucher/period_closing_voucher.py 88.23% <0.00%> (-1.48%) ⬇️
...eport/production_analytics/production_analytics.py 69.51% <0.00%> (-1.22%) ⬇️
erpnext/stock/reorder_item.py 76.06% <0.00%> (-0.86%) ⬇️
...ype/account/chart_of_accounts/chart_of_accounts.py 77.24% <0.00%> (-0.69%) ⬇️
erpnext/stock/report/stock_ledger/stock_ledger.py 77.23% <0.00%> (ø)
.../report/stock_projected_qty/stock_projected_qty.py 88.15% <0.00%> (ø)
erpnext/stock/stock_ledger.py 85.39% <0.00%> (+0.18%) ⬆️
... and 153 more

@ruchamahabal ruchamahabal merged commit ae929d7 into frappe:develop Dec 23, 2021
@ruchamahabal
Copy link
Member Author

@Mergifyio backport version-13-hotfix

mergify bot pushed a commit that referenced this pull request Dec 23, 2021
…r submit (#29005)

* fix(test): Leave Allocation validation against Leave Application after submit

* chore: clean-up Leave Allocation tests

* fix(test): set holiday list for leave allocation test

(cherry picked from commit ae929d7)
@mergify
Copy link
Contributor

mergify bot commented Dec 23, 2021

backport version-13-hotfix

✅ Backports have been created

ruchamahabal added a commit to ruchamahabal/erpnext that referenced this pull request Dec 27, 2021
…r submit (frappe#29005)

* fix(test): Leave Allocation validation against Leave Application after submit

* chore: clean-up Leave Allocation tests

* fix(test): set holiday list for leave allocation test
ruchamahabal added a commit that referenced this pull request Dec 27, 2021
* fix(test): Leave Allocation validation against Leave Application after submit (#29005)

* fix(test): Leave Allocation validation against Leave Application after submit

* chore: clean-up Leave Allocation tests

* fix(test): set holiday list for leave allocation test

* fix: flaky HR tests (#29017)

* fix(test): use root company in Expense Claim tests

* fix(test): set Holiday List for Leave Allocation

* fix(test): set Holiday List for company
conncampbell pushed a commit to conncampbell/erpnext that referenced this pull request Jan 9, 2022
…r submit (frappe#29005)

* fix(test): Leave Allocation validation against Leave Application after submit

* chore: clean-up Leave Allocation tests

* fix(test): set holiday list for leave allocation test
conncampbell pushed a commit to conncampbell/erpnext that referenced this pull request Jan 9, 2022
…r submit (frappe#29005)

* fix(test): Leave Allocation validation against Leave Application after submit

* chore: clean-up Leave Allocation tests

* fix(test): set holiday list for leave allocation test
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.

None yet

1 participant