From 5cda32a53e1bff36348698cff07daeeadf79ba7b Mon Sep 17 00:00:00 2001 From: katarinasupe Date: Mon, 24 Jun 2024 16:29:51 +0200 Subject: [PATCH] flake8 + black --- gqlalchemy/vendors/memgraph.py | 2 ++ tests/ogm/test_transactions.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gqlalchemy/vendors/memgraph.py b/gqlalchemy/vendors/memgraph.py index a20d76d7..d1ac7fde 100644 --- a/gqlalchemy/vendors/memgraph.py +++ b/gqlalchemy/vendors/memgraph.py @@ -55,9 +55,11 @@ class MemgraphTerminatedTransaction: def __init__(self, transaction_id: str, killed: bool): self.transaction_id = transaction_id self.killed = killed + def __repr__(self): return f"MemgraphTerminatedTransaction(transaction_id={self.transaction_id}, killed={self.killed})" + class MemgraphConstants: CONSTRAINT_TYPE = "constraint type" EXISTS = "exists" diff --git a/tests/ogm/test_transactions.py b/tests/ogm/test_transactions.py index 3cd71dde..f304a8bb 100644 --- a/tests/ogm/test_transactions.py +++ b/tests/ogm/test_transactions.py @@ -5,4 +5,3 @@ def test_get_transactions(memgraph): assert result[0].transaction_id != "" assert result[0].query == ["SHOW TRANSACTIONS;"] assert result[0].metadata == {} -