- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
22 lines
740 B
Python
22 lines
740 B
Python
from __future__ import annotations
|
|
|
|
import unittest
|
|
|
|
from mypyc.ir.ops import BasicBlock
|
|
from mypyc.ir.pprint import format_blocks, generate_names_for_ir
|
|
from mypyc.irbuild.ll_builder import LowLevelIRBuilder
|
|
from mypyc.options import CompilerOptions
|
|
|
|
|
|
class TestMisc(unittest.TestCase):
|
|
def test_debug_op(self) -> None:
|
|
block = BasicBlock()
|
|
builder = LowLevelIRBuilder(
|
|
errors=None, options=CompilerOptions(strict_traceback_checks=True)
|
|
)
|
|
builder.activate_block(block)
|
|
builder.debug_print("foo")
|
|
|
|
names = generate_names_for_ir([], [block])
|
|
code = format_blocks([block], names, {})
|
|
assert code[:-1] == ["L0:", " r0 = 'foo'", " CPyDebug_PrintObject(r0)"]
|