Add metadata_id field to documents in integration tests
This commit is contained in:
parent
899275c25e
commit
20d721f5ca
4 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ TEST_TEXT = """
|
|||
def test_AudioDocument():
|
||||
|
||||
document = AudioDocument(
|
||||
id=uuid.uuid4(), name="audio-dummy-test", raw_data_location=""
|
||||
id=uuid.uuid4(), name="audio-dummy-test", raw_data_location="", metadata_id=uuid.uuid4()
|
||||
)
|
||||
with patch.object(AudioDocument, "create_transcript", return_value=TEST_TEXT):
|
||||
for ground_truth, paragraph_data in zip(
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ The commotion has attracted an audience: a murder of crows has gathered in the l
|
|||
def test_ImageDocument():
|
||||
|
||||
document = ImageDocument(
|
||||
id=uuid.uuid4(), name="image-dummy-test", raw_data_location=""
|
||||
id=uuid.uuid4(), name="image-dummy-test", raw_data_location="", metadata_id=uuid.uuid4()
|
||||
)
|
||||
with patch.object(ImageDocument, "transcribe_image", return_value=TEST_TEXT):
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ def test_PdfDocument():
|
|||
"artificial-intelligence.pdf",
|
||||
)
|
||||
document = PdfDocument(
|
||||
id=uuid.uuid4(), name="Test document.pdf", raw_data_location=test_file_path
|
||||
id=uuid.uuid4(), name="Test document.pdf", raw_data_location=test_file_path, metadata_id=uuid.uuid4()
|
||||
)
|
||||
|
||||
for ground_truth, paragraph_data in zip(
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def test_TextDocument(input_file, chunk_size):
|
|||
input_file,
|
||||
)
|
||||
document = TextDocument(
|
||||
id=uuid.uuid4(), name=input_file, raw_data_location=test_file_path
|
||||
id=uuid.uuid4(), name=input_file, raw_data_location=test_file_path, metadata_id=uuid.uuid4()
|
||||
)
|
||||
|
||||
for ground_truth, paragraph_data in zip(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue