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

Method test_comment

test/test_tools.py:14–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class TestCommentToDBML(TestCase):
14 def test_comment(self) -> None:
15 oneline = "comment"
16 self.assertEqual(f"// {oneline}\n", comment_to_dbml(oneline))
17
18 expected = """//
19// line1
20// line2
21// line3
22//
23"""
24 source = "\nline1\nline2\nline3\n"
25 self.assertEqual(comment_to_dbml(source), expected)
26
27
28class TestCommentToSQL(TestCase):

Callers

nothing calls this directly

Calls 1

comment_to_dbmlFunction · 0.90

Tested by

no test coverage detected