@@ -637,7 +637,11 @@ def test_insert_and_get_with_referenced_documents(
637637
638638 # Create a CacheEntry with referenced documents
639639 docs = [
640- ReferencedDocument (doc_title = "Test Doc" , doc_url = AnyUrl ("http://example.com/" ), document_id = "test_doc_postgres_1" )
640+ ReferencedDocument (
641+ doc_title = "Test Doc" ,
642+ doc_url = AnyUrl ("http://example.com/" ),
643+ document_id = "test_doc_postgres_1" ,
644+ )
641645 ]
642646 entry_with_docs = CacheEntry (
643647 query = "user message" ,
@@ -664,7 +668,12 @@ def test_insert_and_get_with_referenced_documents(
664668 inserted_json_str = sql_params [- 3 ]
665669
666670 assert json .loads (inserted_json_str ) == [
667- {"doc_url" : "http://example.com/" , "doc_title" : "Test Doc" , "source" : None , "document_id" : "test_doc_postgres_1" }
671+ {
672+ "doc_url" : "http://example.com/" ,
673+ "doc_title" : "Test Doc" ,
674+ "source" : None ,
675+ "document_id" : "test_doc_postgres_1" ,
676+ }
668677 ]
669678
670679 # Simulate the database returning that data
@@ -675,7 +684,13 @@ def test_insert_and_get_with_referenced_documents(
675684 "bar" ,
676685 "start_time" ,
677686 "end_time" ,
678- [{"doc_url" : "http://example.com/" , "doc_title" : "Test Doc" , "document_id" : "test_doc_postgres_1" }],
687+ [
688+ {
689+ "doc_url" : "http://example.com/" ,
690+ "doc_title" : "Test Doc" ,
691+ "document_id" : "test_doc_postgres_1" ,
692+ }
693+ ],
679694 None , # tool_calls
680695 None , # tool_results
681696 )
0 commit comments