mirror of
https://github.com/IgorAherne/Spellcast3d.git
synced 2026-12-01 08:06:27 -10:00
A free, open-source Windows app that takes an artist from an idea to game-ready 3D props on their own PC: pictures with Qwen-Image 2.1, 3D models with Pixal3D, an optional repaint of their textures, retopology with TriFlow, LATO.2 or Instant Meshes, and a baker for the final textures. See README.md, and DEVELOPERS.md for building from source. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
"""Tests of the baker (code/spellcast/launchers/spellbake).
|
|
|
|
They run in the Instant Meshes venv, which has numpy, trimesh, Pillow, xatlas and
|
|
embreex:
|
|
|
|
code\\venvs\\imesh\\Scripts\\python -m pytest code/tests/bake -m "not realasset"
|
|
|
|
The hub venv has none of these, so there nothing in this folder is collected.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import importlib.util
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
LAUNCHERS = Path(__file__).resolve().parents[2] / "spellcast" / "launchers"
|
|
if str(LAUNCHERS) not in sys.path:
|
|
sys.path.insert(0, str(LAUNCHERS))
|
|
|
|
if importlib.util.find_spec("embreex") is None:
|
|
# The hub venv. (pytest.importorskip here would skip the folder when pytest reaches it
|
|
# from code/tests, but abort a run that names this folder: pytest imports this file
|
|
# before collecting anything.)
|
|
collect_ignore_glob = ["*"]
|
|
|
|
|
|
def pytest_configure(config: pytest.Config) -> None:
|
|
config.addinivalue_line("markers", "slow: takes more than a few seconds")
|
|
config.addinivalue_line("markers", "realasset: needs meshes from this PC's projects; skipped when absent")
|