Skip to content

Commit

Permalink
. B Fix bug in python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Nov 5, 2024
1 parent 0775445 commit 3b08b77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/scripts/documentation_release.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import shutil
import time
from collections import Callable
from typing import Callable

from scripts.release_constants import release_constants
from scripts.utilities import read_file, use_directory, replace_text_in_file, run, check_step


from scripts.release_details import ReleaseDetails
from typing import Callable

class PrepareDocumentationRelease:
@staticmethod
def prepare_documentation(details: ReleaseDetails) -> None:
Expand Down
4 changes: 2 additions & 2 deletions build/tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
from typing import Callable, List

from approvaltests import verify_all
from approvaltests import verify_all, Options

from scripts.utilities import read_file
from tests.helpers import set_home_directory
Expand Down Expand Up @@ -30,7 +30,7 @@ def with_embedded_cpp_file_with_include(filename: str) -> bool:
all_files += find_all_files(".md", with_embedded_cpp_file_with_include, "../doc")

verify_all("Files that have both snippets or embedded whole source files and using namespace ApprovalTests",
all_files, lambda f: str(f))
all_files, lambda f: str(f), options=Options().with_scrubber(lambda f: f.replace("\\", "/")))


def find_all_files(suffix: str, with_filter: Callable, directory: str) -> List[str]:
Expand Down

0 comments on commit 3b08b77

Please sign in to comment.