def test_expected_documents_find_by_exp_document_guid(db_session): exp_doc = MineExpectedDocumentFactory.create_batch(size=BATCH_SIZE)[0] expected_document = MineExpectedDocument.find_by_exp_document_guid( str(exp_doc.exp_document_guid)) assert expected_document.exp_document_guid == exp_doc.exp_document_guid
def test_expected_documents_find_by_exp_document_guid(test_client): expected_document = MineExpectedDocument.find_by_exp_document_guid( TEST_EXPECTED_DOCUMENT_GUID1) assert str( expected_document.exp_document_guid) == TEST_EXPECTED_DOCUMENT_GUID1