Skip to content

Commit cce22c1

Browse files
committed
Fixed tests
Signed-off-by: Pavel Tisnovsky <[email protected]>
1 parent 4c72419 commit cce22c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/e2e/test_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,25 +304,25 @@ def test_openapi_endpoint():
304304
), "OpenAPI schema returned from service does not have expected content."
305305

306306

307-
def test_cache_existence(postgres_connection):
307+
def test_cache_existence(postgres_db_connection):
308308
"""Test the cache existence."""
309-
if postgres_connection is None:
309+
if postgres_db_connection is None:
310310
pytest.skip("Postgres is not accessible.")
311311

312-
value = read_conversation_history_count(postgres_connection)
312+
value = read_conversation_history_count(postgres_db_connection)
313313
# check if history exists at all
314314
assert value is not None
315315

316316

317-
def test_conversation_in_postgres_cache(postgres_connection) -> None:
317+
def test_conversation_in_postgres_cache(postgres_db_connection) -> None:
318318
"""Check how/if the conversation is stored in cache."""
319-
if postgres_connection is None:
319+
if postgres_db_connection is None:
320320
pytest.skip("Postgres is not accessible.")
321321

322322
cid = suid.get_suid()
323323
client_utils.perform_query(pytest.client, cid, "what is kubernetes?")
324324

325-
conversation, updated_at = read_conversation_history(postgres_connection, cid)
325+
conversation, updated_at = read_conversation_history(postgres_db_connection, cid)
326326
assert conversation is not None
327327
assert updated_at is not None
328328

@@ -342,7 +342,7 @@ def test_conversation_in_postgres_cache(postgres_connection) -> None:
342342
# second question
343343
client_utils.perform_query(pytest.client, cid, "what is openshift virtualization?")
344344

345-
conversation, updated_at = read_conversation_history(postgres_connection, cid)
345+
conversation, updated_at = read_conversation_history(postgres_db_connection, cid)
346346
assert conversation is not None
347347

348348
# unpickle conversation into list of messages

0 commit comments

Comments
 (0)