summaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-21 07:51:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-21 07:51:15 +0000
commitd8409535af8f9e9944c63c73f33bc7cc9577ccfb (patch)
tree5d3adfdc0309ee50bd74d974d3488ea6ba5b8229 /tests/conftest.py
parentInitial commit. (diff)
downloadjinjax-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.py24
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