mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-29 12:10:28 +00:00
Initialize app at runtime instead of import time (#4024)
This commit is contained in:
parent
f7e68141eb
commit
0efae234ab
14 changed files with 319 additions and 183 deletions
|
|
@ -8,10 +8,17 @@ import pytest
|
|||
from skyvern import config
|
||||
from skyvern.config import Settings
|
||||
from skyvern.forge import app
|
||||
from skyvern.forge.forge_app_initializer import start_forge_app
|
||||
from skyvern.forge.sdk.api.llm import api_handler_factory, config_registry
|
||||
from skyvern.forge.sdk.settings_manager import SettingsManager
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def setup_forge_app():
|
||||
start_forge_app()
|
||||
yield
|
||||
|
||||
|
||||
class DummyResponse(dict):
|
||||
def __init__(self, content: str):
|
||||
super().__init__({"choices": [{"message": {"content": content}}], "usage": {}})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue