diff --git a/tests/conftest.py b/tests/conftest.py index 2da3b8c8..2b521c20 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -55,7 +55,7 @@ def resources_dir(): @pytest.fixture(scope="session") -def project(): +def mknodes_project(): proj = project_.Project.for_mknodes() # with utils.response_mock( # [ diff --git a/tests/test_build.py b/tests/test_build.py index a7b76cf6..bdceb7cc 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -11,7 +11,7 @@ def build(project): root += sub_nav -def test_templates(project): +def test_templates(): theme = mk.MaterialTheme() project = mk.Project(theme=theme, repo=".", build_fn=build) project.build() diff --git a/tests/test_jinja.py b/tests/test_jinja.py index 526b025c..d76b025e 100644 --- a/tests/test_jinja.py +++ b/tests/test_jinja.py @@ -3,8 +3,8 @@ import mknodes as mk -def test_if_mknodes_parent_is_set(project): +def test_if_mknodes_parent_is_set(mknodes_project): page = mk.MkPage() - project._root += page + mknodes_project._root += page page.env.render_string(r"{{ 'test' | MkHeader }}") assert page.env.rendered_nodes[-1].parent == page diff --git a/tests/test_resolver.py b/tests/test_resolver.py index d4bfdc06..7fbf7694 100644 --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -3,11 +3,11 @@ from mknodes.treelib import noderesolver -def test_resolver(project): +def test_resolver(mknodes_project): resolver = noderesolver.MkNodeResolver() - result = resolver.glob("*/*/MkAdm*", project._root) + result = resolver.glob("*/*/MkAdm*", mknodes_project._root) assert result -def resolving_files(project): - project.all_files() +def resolving_files(mknodes_project): + mknodes_project.all_files()