Skip to content

Commit

Permalink
chore: test work
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 16, 2023
1 parent e7ea245 commit b37df28
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
# [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions tests/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit b37df28

Please sign in to comment.