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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user