45dd79d292
* refactor(runtime): evaluator capability, route engine on runtimes, drop PythonRuntime * refactor(runtime): split base into types/errors/mixin, eval transport belongs to the runtime * docs: module layout convention (types/errors/config/mixin/base) * docs: trim module layout section * review: brand the evaluator, bind session inputs and bytes on pyodide * fix(runtime): refuse unbound interpreters with GNU command-not-found wording * fix(integ): survive connection resets while jaeger boots * docs: evaluator page under learn, language icons for the runtime pages * docs: reframe the evaluator page as the policy engine * docs: both entries capture python3 in the policy engine example * docs: real routing case with the ctx payload and verdict semantics * docs: drop the engine-only yaml block, one parenthetical instead * docs: live-captured ctx payload, verified config, function route signature * docs: trim the policy engine section
21 lines
881 B
Python
21 lines
881 B
Python
# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========
|
|
|
|
from mirage.runtime.errors import EvalError
|
|
|
|
|
|
def test_eval_error_carries_the_syntax_bit():
|
|
assert EvalError("boom").syntax is False
|
|
assert EvalError("boom", syntax=True).syntax is True
|