Skip to content

Commit cd49eed

Browse files
committed
Update HTTP protocol check
1 parent 28c0655 commit cd49eed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

singlestoredb/tests/test_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
# Skip all tests in this module when using HTTP Data API
1717
# The singlestoredb_tempdb fixture uses 'USE database' which doesn't work with HTTP
1818
pytestmark = pytest.mark.skipif(
19-
os.environ.get('USE_DATA_API', '0').lower() in ('1', 'true', 'on'),
19+
'http://' in os.environ.get('SINGLESTOREDB_URL', '').lower() or
20+
'https:/' in os.environ.get('SINGLESTOREDB_URL', '').lower(),
2021
reason='Plugin tests require MySQL protocol (USE database not supported via HTTP)',
2122
)
2223

0 commit comments

Comments
 (0)