MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Foobar1

Class Foobar1

test/sql/test_compare.py:1426–1434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424
1425 def test_cache_key_unknown_traverse(self):
1426 class Foobar1(ClauseElement):
1427 _traverse_internals = [
1428 ("key", InternalTraversal.dp_anon_name),
1429 ("type_", InternalTraversal.dp_unknown_structure),
1430 ]
1431
1432 def __init__(self, key, type_):
1433 self.key = key
1434 self.type_ = type_
1435
1436 f1 = Foobar1("foo", String())
1437 eq_(f1._generate_cache_key(), None)

Calls

no outgoing calls