Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Nov 12, 2024
1 parent a8e05de commit a7bed5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions py/tests/integration/runner_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,14 @@ def compare_document_fields(documents, expected_doc):

def test_document_overview_sample_file_cli():
print("Testing: Document overview contains 'aristotle.txt'")
output = run_command("poetry run r2r documents-overview")
output = output.replace("'", '"')
output = run_command(
"poetry run r2r --base-url=http://localhost:7276 documents-overview"
)
output = output.replace("'", '"').replace(
"None", "null"
) # Replace Python None with JSON null
output_lines = output.strip().split("\n")[1:]
print("output_lines = ", output_lines)
documents = [json.loads(ele) for ele in output_lines]

aristotle_document = {
Expand Down

0 comments on commit a7bed5c

Please sign in to comment.