Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Adds one more test to postgresql

Stefan Krawczykcd11a47fb658
diff --git a/tests/integrations/persisters/test_postgresql.py b/tests/integrations/persisters/test_postgresql.py
index adaf229d..c45c6fa0 100644
--- a/tests/integrations/persisters/test_postgresql.py
+++ b/tests/integrations/persisters/test_postgresql.py
@@ -55,3 +55,15 @@ def test_is_initialized(postgresql_persister):
table_name="testtable",
)
assert persister2.is_initialized()
+
+
+def test_is_initialized_false():
+ persister = PostgreSQLPersister.from_values(
+ db_name="postgres",
+ user="postgres",
+ password="postgres",
+ host="localhost",
+ port=5432,
+ table_name="testtable2",
+ )
+ assert not persister.is_initialized()