Skip to content

Commit 4c72d4b

Browse files
committed
only test sql backend on ubuntu currently
1 parent 9db0462 commit 4c72d4b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
# ToDo: take if back when the connection become stable
2828
# or resolve using `InMemoryMongoClient`
2929
- { os: "macOS-latest", backend: "mongodb" }
30+
- { os: "macOS-latest", backend: "postgres" }
31+
- { os: "windows-latest", backend: "postgres" }
3032
env:
3133
CACHIER_TEST_HOST: "localhost"
3234
CACHIER_TEST_PORT: "27017"

tests/test_sql_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_import_cachier_without_sqlalchemy(monkeypatch):
186186
sys.modules.update(modules_backup)
187187

188188

189-
@pytest.mark.sql
189+
@pytest.mark.local
190190
def test_sqlcore_importerror_without_sqlalchemy(monkeypatch):
191191
"""Test that using SQL core without SQLAlchemy raises an ImportError."""
192192
# Simulate SQLAlchemy not installed
@@ -196,7 +196,6 @@ def test_sqlcore_importerror_without_sqlalchemy(monkeypatch):
196196
sys.modules["sqlalchemy.engine"] = None
197197
try:
198198
import importlib
199-
200199
sql_mod = importlib.import_module("cachier.cores.sql")
201200
with pytest.raises(ImportError) as excinfo:
202201
sql_mod._SQLCore(hash_func=None, sql_engine="sqlite:///:memory:")

0 commit comments

Comments
 (0)