refactor into src-layout package.

This commit is contained in:
Nathan TeBlunthuis
2025-07-07 20:13:17 -07:00
parent 56c90fe1cc
commit c597a6b7f4
9 changed files with 59 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ from pandas.testing import assert_frame_equal, assert_series_equal
# Make references to files and wikiq relative to this file, not to the current working directory.
TEST_DIR: Final[str] = os.path.dirname(os.path.realpath(__file__))
WIKIQ: Final[str] = os.path.join(os.path.dirname(TEST_DIR), "wikiq")
WIKIQ: Final[str] = os.path.join(os.path.join(TEST_DIR,".."), "src/wikiq/__init__.py")
TEST_OUTPUT_DIR: Final[str] = os.path.join(TEST_DIR, "test_output")
BASELINE_DIR: Final[str] = os.path.join(TEST_DIR, "baseline_output")

View File

@@ -6,7 +6,7 @@ import pytest_asyncio
from typing import List
from deltas import Delete, Equal, Insert, wikitext_split
from mwpersistence import Token
from wiki_diff_matcher import WikiDiffMatcher
from wikiq.wiki_diff_matcher import WikiDiffMatcher
def _replace_whitespace(match):
if match.group(1): # If spaces matched (e.g., ' ')