Skip to content

Commit 7238b66

Browse files
authored
Fix smartapp_files in tests (#6)
1 parent bf20e5f commit 7238b66

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
from asyncio import Task
33
from http import HTTPStatus
4+
from pathlib import Path
45
from typing import (
56
Any,
67
AsyncGenerator,
@@ -44,6 +45,13 @@
4445
from app.smartapp.smartapp import smartapp as smartapp_rpc
4546

4647

48+
@pytest.fixture(autouse=True)
49+
def create_smartapp_files() -> None:
50+
path = Path("app/smartapp_files/static")
51+
if not path.exists():
52+
path.mkdir(parents=True)
53+
54+
4755
@pytest.fixture
4856
def db_migrations() -> Generator:
4957
alembic_config.main(argv=["upgrade", "head"])

0 commit comments

Comments
 (0)