Files
doczyai-pipelines/fieldExtraction/tests/hotfix_helper_funcs_test.py
T
Alex Galarce 56e3fdd1f8 Merged in bugfix/all_cnc_hotfixes (pull request #302)
DRAFT: Bugfix/all cnc hotfixes

* Pipeline fix - health plan state

* Update for prompt vs non-prompt fixes

* Revert utils.find_regex_matches()

* Remove prints

* Non-prompt run

* Health Plan State, IRS, NPI, LOB, Lesser, Prov 2, Default, Rate Standard, Contract Effective Date, Term Group

* Merged in bugfix/agreement_name (pull request #294)

contract title fixed

* contract title fixed

* Merged bugfix/all_cnc_hotfixes into bugfix/agreement_name


Approved-by: Katon Minhas

* All hotfixes added

* Fixed utils

* fix for clean_contract_effective_date
* Merged in default-fix (pull request #296)

moved default funcs to the top, dropped intermediate columns

* moved default funcs to the top, dropped intermediate columns


Approved-by: Katon Minhas

* quick fix to dropping extra columns

* Merged in bugfix/effective_date_meridian (pull request #297)

fixed effective date for meridian contracts

* fixed effective date for meridian contracts


Approved-by: Katon Minhas

* Default rate and Lesser fix

* Merged in hotfix/irs_npi_updated (pull request #298)

updated irs and npi hotfix funcs

* updated irs and npi hotfix funcs

* Merged bugfix/all_cnc_hotfixes into hotfix/irs_npi_updated


Approved-by: Katon Minhas

* non-functional commit - default only

* debug commit - premerge

* Batch 1 Dup File Reconciliation

* Default rate fix

* Full CNC 1A Run Config

* Standard column refactor

* Working stitching for 1A

* Merged in Alex-Galarce/cnc_hotfix_effective_date_utilspy-edited-1732659983687 (pull request #301)

Remove "license" from effective date smart chunking

* Remove "license" from effective date smart chunking
* Merged bugfix/all_cnc_hotfixes into Alex-Galarce/cnc_hotfix_effective_date_utilspy-edited-1732659983687


Approved-by: Katon Minhas

* Merged in hotfix/irs_batch2_feedback (pull request #300)

IRS fix for feedback on batch2

* IRS fix for feedback on batch2

* Merged bugfix/all_cnc_hotfixes into hotfix/irs_batch2_feedback


Approved-by: Katon Minhas

* Merged main into bugfix/all_cnc_hotfixes


Approved-by: Katon Minhas
2024-11-27 15:08:04 +00:00

21 lines
859 B
Python

import pytest
# from hotfix_helper_funcs import apply_date_formatting_fix
# def test_change_date_formatting():
# assert apply_date_formatting_fix("31/12/2012") == "12/31/2012"
# assert apply_date_formatting_fix("20/07/2025") == "07/20/2025"
# assert apply_date_formatting_fix("13/12/1992") == "12/13/1992"
# def test_date_formatting_no_change():
# assert apply_date_formatting_fix("11/21/2024") == "11/21/2024"
# assert apply_date_formatting_fix("07/20/1992") == "07/20/1992"
# assert apply_date_formatting_fix("01/02/2000") == "01/02/2000"
# def test_date_formatting_na():
# assert apply_date_formatting_fix("N/A") == "N/A"
# def test_invalid_date():
# with pytest.raises(ValueError):
# apply_date_formatting_fix("7/20/1992")
# with pytest.raises(ValueError):
# apply_date_formatting_fix("some string")