Adding upstream version 0.45+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
b4efa209be
commit
eb42e29864
35 changed files with 4489 additions and 0 deletions
24
tests/conftest.py
Normal file
24
tests/conftest.py
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue