Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Read the failure kinds from NXCore in the Qt hint test (#387)

v0lumehib236dc638ed3
diff --git a/frontend-qt/tests/test_build_failure_hints.py b/frontend-qt/tests/test_build_failure_hints.py
index deced6c6..72ec2807 100644
--- a/frontend-qt/tests/test_build_failure_hints.py
+++ b/frontend-qt/tests/test_build_failure_hints.py
@@ -26,7 +26,9 @@ from nspb_qt.i18n import Lang # noqa: E402
from nspb_qt.localization import TABLE # noqa: E402
FIXTURES = json.loads((ROOT / 'frontend/Tests/Fixtures/build_failures.json').read_text(encoding='utf-8'))
-SWIFT = (ROOT / 'frontend/Sources/NX2Apple/BuildFailure.swift').read_text(encoding='utf-8')
+# the table is the classifier's (the app target), the kinds and their override flags are NXCore's
+SWIFT = ''.join((ROOT / 'frontend/Sources' / f).read_text(encoding='utf-8')
+ for f in ('NX2Apple/BuildFailure.swift', 'NXCore/BuildFailureKind.swift'))
def fixture(pattern_id: str) -> dict: