@@ -304,25 +304,25 @@ def test_openapi_endpoint():
304
304
), "OpenAPI schema returned from service does not have expected content."
305
305
306
306
307
- def test_cache_existence (postgres_connection ):
307
+ def test_cache_existence (postgres_db_connection ):
308
308
"""Test the cache existence."""
309
- if postgres_connection is None :
309
+ if postgres_db_connection is None :
310
310
pytest .skip ("Postgres is not accessible." )
311
311
312
- value = read_conversation_history_count (postgres_connection )
312
+ value = read_conversation_history_count (postgres_db_connection )
313
313
# check if history exists at all
314
314
assert value is not None
315
315
316
316
317
- def test_conversation_in_postgres_cache (postgres_connection ) -> None :
317
+ def test_conversation_in_postgres_cache (postgres_db_connection ) -> None :
318
318
"""Check how/if the conversation is stored in cache."""
319
- if postgres_connection is None :
319
+ if postgres_db_connection is None :
320
320
pytest .skip ("Postgres is not accessible." )
321
321
322
322
cid = suid .get_suid ()
323
323
client_utils .perform_query (pytest .client , cid , "what is kubernetes?" )
324
324
325
- conversation , updated_at = read_conversation_history (postgres_connection , cid )
325
+ conversation , updated_at = read_conversation_history (postgres_db_connection , cid )
326
326
assert conversation is not None
327
327
assert updated_at is not None
328
328
@@ -342,7 +342,7 @@ def test_conversation_in_postgres_cache(postgres_connection) -> None:
342
342
# second question
343
343
client_utils .perform_query (pytest .client , cid , "what is openshift virtualization?" )
344
344
345
- conversation , updated_at = read_conversation_history (postgres_connection , cid )
345
+ conversation , updated_at = read_conversation_history (postgres_db_connection , cid )
346
346
assert conversation is not None
347
347
348
348
# unpickle conversation into list of messages
0 commit comments