test_hull_grid: load hull_grid under its repo-rooted dotted name so mutmut can attribute kills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a308a7d8ea
commit
a9ce0bbc42
1 changed files with 2 additions and 1 deletions
|
|
@ -10,8 +10,9 @@ import importlib.util
|
|||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
# The dotted name is the module's path from the repo root, which mutmut keys its mutants by.
|
||||
_spec = importlib.util.spec_from_file_location(
|
||||
"hull_grid", Path(__file__).resolve().parents[1] / "aetheria_ships" / "hull_grid.py")
|
||||
"tools.blender.aetheria_ships.hull_grid", Path(__file__).resolve().parents[1] / "aetheria_ships" / "hull_grid.py")
|
||||
hull_grid = importlib.util.module_from_spec(_spec)
|
||||
_spec.loader.exec_module(hull_grid)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue