diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-21 07:51:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-21 07:51:15 +0000 |
commit | d8409535af8f9e9944c63c73f33bc7cc9577ccfb (patch) | |
tree | 5d3adfdc0309ee50bd74d974d3488ea6ba5b8229 /tests/conftest.py | |
parent | Initial commit. (diff) | |
download | jinjax-d8409535af8f9e9944c63c73f33bc7cc9577ccfb.tar.xz jinjax-d8409535af8f9e9944c63c73f33bc7cc9577ccfb.zip |
Adding upstream version 0.45+dfsg.upstream/0.45+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..6256373 --- /dev/null +++ b/tests/conftest.py @@ -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 |