Merged in bugfix/dynamic-primary-and-pyproject (pull request #683)

pyproject requirements, prep for logging fixes

* remove chroma

* update project name to "doczy-field-extraction" in pyproject.toml

* update lock file

* replace print statements with logging for better traceability in process_file function

* replace print statements with logging for improved error tracking and information logging

* replace print statements with logging for improved error handling and traceability

* replace print statements with logging for improved error handling in llm_utils and string_utils

* remove unused table_utils module; supplanted by table_funcs and unreferenced

* replace capsys with caplog in test_invalid_input_type for improved logging of invalid input


Approved-by: Katon Minhas
This commit is contained in:
Alex Galarce
2025-08-27 16:37:48 +00:00
parent 90bdc672d5
commit 39a07f63c9
14 changed files with 1319 additions and 3074 deletions
+2 -3
View File
@@ -151,13 +151,12 @@ class TestStringUtils:
result = contains_reimbursement(text, page)
assert result == expected
def test_invalid_input_type(self, capsys):
def test_invalid_input_type(self, caplog):
text = ["This is a list, not a dictionary or string."]
page = "1"
result = contains_reimbursement(text, page)
assert result is False
captured = capsys.readouterr()
assert "contains_reimbursement - Invalid data type" in captured.out
assert "contains_reimbursement - Invalid data type" in caplog.text
@pytest.mark.parametrize(
"value, expected",