From 01a6499f9becea7e17ab80992e282254ebcaeb80 Mon Sep 17 00:00:00 2001 From: Christopher Barber Date: Sun, 23 Jun 2024 10:19:10 -0400 Subject: [PATCH] Fix test for issue #18 --- environment.yml | 2 +- pyproject.toml | 2 +- tests/test_handler.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/environment.yml b/environment.yml index 953dc38..580b53f 100644 --- a/environment.yml +++ b/environment.yml @@ -5,7 +5,7 @@ channels: dependencies: # runtime - python >=3.8,<3.13 - - mkdocstrings-python >=1.6.2,<1.10 # TODO: issue #18 + - mkdocstrings-python >=1.6.2,<2.0 # build - build >=0.7.0 - hatchling >=1.21 diff --git a/pyproject.toml b/pyproject.toml index e4b5649..8c035a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ keywords = [ dynamic = ["version"] requires-python = ">=3.8" dependencies = [ - "mkdocstrings-python >=1.6.2,<1.10" # TODO: issue #18 + "mkdocstrings-python >=1.6.2,<2.0" ] [project.urls] diff --git a/tests/test_handler.py b/tests/test_handler.py index fb267ab..f1d316d 100644 --- a/tests/test_handler.py +++ b/tests/test_handler.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022. Analog Devices Inc. +# Copyright (c) 2022-2024. Analog Devices Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ def test_handler(tmpdir: PathLike, config_file = os.path.join(tmpdir, 'mkdocs.yml') os.mkdir(os.path.join(tmpdir, 'path1')) os.mkdir(os.path.join(tmpdir, 'path2')) + os.makedirs(os.path.join(tmpdir, 'custom_templates', 'python')) # # Test construction