MCPcopy
hub / github.com/ponyorm/pony / test_2

Method test_2

pony/orm/tests/test_f_strings.py:49–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self.assertEqual(set(q2), {1})
48
49 def test_2(self):
50 q = select(p.id for p in Person if f'{p.first_name} {p.last_name}' == 'Alexander Tischenko')
51 self.assertEqual(set(q), {1})
52
53 q2 = select("""p.id for p in Person if f'{p.first_name} {p.last_name}' == 'Alexander Tischenko'""")
54 self.assertEqual(set(q2), {1})
55
56 def test_3(self):
57 x = 'Great'

Callers

nothing calls this directly

Calls 1

selectFunction · 0.85

Tested by

no test coverage detected