Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run deterministic tests
run: |
pytest tests/test_componentes.py tests/test_nodes.py \
pytest tests/test_componentes.py tests/test_code_sql.py tests/test_nodes.py \
tests/test_integracao.py tests/test_main_engine_integracao.py \
tests/test_biblioteca_integracao.py tests/test_data_exploration.py \
tests/test_data_exploration_postgres.py \
Expand Down
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ def olist_engine():
engine.dispose()


@pytest.fixture
def sqlite_olist_engine_propria():
"""Engine Olist própria por teste, para isolar alterações e inspeções do pool."""
from sqlalchemy import create_engine

engine = create_engine(f"sqlite:///{DB_OLIST}")
try:
yield engine
finally:
engine.dispose()


@pytest.fixture(scope="session")
def _cache_dir_testes(tmp_path_factory):
return tmp_path_factory.mktemp("text_to_insight_cache")
Expand Down
Loading
Loading