Path: blob/main/singlestoredb/tests/test_plugin.py
469 views
#!/usr/bin/env python1# type: ignore2"""SingleStoreDB Pytest Plugin testing34Each of these tests performs the same simple operation which5would fail if any other test had been run on the same database.6"""7from singlestoredb.connection import Cursor89# pytest_plugins = ('singlestoredb.pytest',)1011CREATE_TABLE_STATEMENT = 'create table test_dict (a text)'121314def test_tempdb1(singlestoredb_tempdb: Cursor):15# alias the fixture16cursor = singlestoredb_tempdb1718cursor.execute(CREATE_TABLE_STATEMENT)192021def test_tempdb2(singlestoredb_tempdb: Cursor):22# alias the fixture23cursor = singlestoredb_tempdb2425cursor.execute(CREATE_TABLE_STATEMENT)262728def test_tempdb3(singlestoredb_tempdb: Cursor):29# alias the fixture30cursor = singlestoredb_tempdb3132cursor.execute(CREATE_TABLE_STATEMENT)333435