MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / test_note

Method test_note

test/test_renderer/test_dbml/test_project.py:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34 @staticmethod
35 def test_note() -> None:
36 project = Project(name="test", items={"key1": "value1"})
37 project.note = Note("Note text")
38 expected = (
39 'Project "test" {\n'
40 " key1: 'value1'\n"
41 " Note {\n"
42 " 'Note text'\n"
43 " }\n"
44 "}"
45 )
46 assert render_project(project) == expected

Callers

nothing calls this directly

Calls 3

ProjectClass · 0.90
NoteClass · 0.90
render_projectFunction · 0.90

Tested by

no test coverage detected