Skip to content

chore: remove the dev setup script #778

chore: remove the dev setup script

chore: remove the dev setup script #778

GitHub Actions / JUnit Test Report failed Jan 23, 2025 in 0s

276 tests run, 266 passed, 9 skipped, 1 failed.

Annotations

Check failure on line 34 in packages/ragbits-document-search/tests/unit/test_providers.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_providers.test_unsupported_provider_validates_supported_document_types_fails

AssertionError: assert 'Document type unknown is not supported by the UnstructuredDefaultProvider' in 'Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider'
 +  where 'Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider' = str(DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider'))
 +    where DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider') = <ExceptionInfo DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider') tblen=2>.value
Raw output
def test_unsupported_provider_validates_supported_document_types_fails():
        with pytest.raises(DocumentTypeNotSupportedError) as err:
            UnstructuredDefaultProvider().validate_document_type(DocumentType.UNKNOWN)
    
>       assert "Document type unknown is not supported by the UnstructuredDefaultProvider" in str(err.value)
E       AssertionError: assert 'Document type unknown is not supported by the UnstructuredDefaultProvider' in 'Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider'
E        +  where 'Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider' = str(DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider'))
E        +    where DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider') = <ExceptionInfo DocumentTypeNotSupportedError('Document type DocumentType.UNKNOWN is not supported by the UnstructuredDefaultProvider') tblen=2>.value

packages/ragbits-document-search/tests/unit/test_providers.py:34: AssertionError