53b38ea15c
Refactor/split investment and client * refactor: clean up tests * Renamed tests/qcqa to tests/qa_qc for consistency * comment out faulty test - see docstring note at top * split to client/investment * add __init__.py to investment and client to avoid mypy confusion * fix imports * update imports for consistency across investment module * move back to one config * try changing import to relative * add init.py to src * try relative import * try one more sys.path.append * fix path for client main * fix imports in file_processing * make prompts common * move keywords out to `src` * move smart_chunking_funcs to `src` * fix mypy error * start moving to explicit imports * remove old keywords and fix imports for keywords and prompts * change all imports to full paths * fix unit tests * add readme for new way of running things * isort after all that import work * remove unused sys.path.append from some tests Approved-by: Katon Minhas
23 lines
861 B
Python
23 lines
861 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")
|