blob: 625637375bd859052feed8a273c70618fcd4b9aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import pytest
import jinjax
@pytest.fixture()
def folder(tmp_path):
d = tmp_path / "components"
d.mkdir()
return d
@pytest.fixture()
def folder_t(tmp_path):
d = tmp_path / "templates"
d.mkdir()
return d
@pytest.fixture()
def catalog(folder):
catalog = jinjax.Catalog(auto_reload=False)
catalog.add_folder(folder)
return catalog
|