Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 24bb1ae

Browse files
committed
Fix ATTACH-dependent tests
1 parent d751c0c commit 24bb1ae

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

sqlalchemy_libsql/requirements.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def _sqlite_attach(self, config):
5353
cursor = connection.cursor()
5454
try:
5555
cursor.execute("ATTACH ':memory:' AS test_schema")
56+
cursor.execute("DETACH test_schema")
5657
return True
5758
except:
5859
return False

test/test_suite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,7 @@ def test_reflect_tables_fk_no_colref(self):
17431743

17441744

17451745
class KeywordInDatabaseNameTest(fixtures.TestBase):
1746+
__requires__ = ("sqlite_attach",)
17461747
__only_on__ = "sqlite"
17471748
__backend__ = True
17481749

0 commit comments

Comments
 (0)