From f1febf66c56d16d89fd15021cf95e01205fd149c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 17 Dec 2023 23:33:27 +0100 Subject: [PATCH 1/3] Fix `SQLAlchemy.destroy`: `open()` does not return an engine object --- rdflib_sqlalchemy/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdflib_sqlalchemy/store.py b/rdflib_sqlalchemy/store.py index ebeb769..f20aca3 100644 --- a/rdflib_sqlalchemy/store.py +++ b/rdflib_sqlalchemy/store.py @@ -307,7 +307,7 @@ def destroy(self, configuration): Delete all tables and stored data associated with the store. """ if self.engine is None: - self.engine = self.open(configuration, create=False) + self.open(configuration, create=False) with self.engine.begin(): try: From d47620c19456131038e823ea7fbefe93c049583c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 17 Dec 2023 23:33:37 +0100 Subject: [PATCH 2/3] Chore: Update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 655ff4f..366d6f4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,9 @@ rdflib_sqlalchemy.egg-info /.eggs/ /dist/ /venv/ +.venv* docs/api +*.sqlite # JetBrains IDE files /.idea/ - From 8552d053362b9f4972ccdeff772b076abd8f795a Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 17 Dec 2023 23:34:49 +0100 Subject: [PATCH 3/3] Chore: Adjust pytest options to also display skipped tests --- pytest.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 5604830..75da5b8 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,7 +6,7 @@ norecursedirs = .git env # Output in color, run doctests -addopts = --color=yes +addopts = -rfEXs --color=yes testpaths = test # Run tests from files matching this glob