Remove setup.sh in favor of skyvern CLI (#4737)
This commit is contained in:
30
tests/unit/conftest.py
Normal file
30
tests/unit/conftest.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# -- begin speed up unit tests
|
||||
import pytest
|
||||
|
||||
from tests.unit.force_stub_app import start_forge_stub_app
|
||||
|
||||
# NOTE(jdo): uncomment below to run tests faster, if you're targetting smth
|
||||
# that does not need the full app context
|
||||
|
||||
# import sys
|
||||
# from unittest.mock import MagicMock
|
||||
|
||||
# mock_modules = [
|
||||
# "skyvern.forge.app",
|
||||
# "skyvern.library",
|
||||
# "skyvern.core.script_generations.skyvern_page",
|
||||
# "skyvern.core.script_generations.run_initializer",
|
||||
# "skyvern.core.script_generations.workflow_wrappers",
|
||||
# "skyvern.services.script_service",
|
||||
# ]
|
||||
|
||||
# for module in mock_modules:
|
||||
# sys.modules[module] = MagicMock()
|
||||
|
||||
# -- end speed up unit tests
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def setup_forge_stub_app():
|
||||
start_forge_stub_app()
|
||||
yield
|
||||
Reference in New Issue
Block a user