MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_pickle_over

Method test_pickle_over

test/sql/test_functions.py:580–593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

578 assert True
579
580 def test_pickle_over(self):
581 # TODO: the test/sql package lacks a comprehensive pickling
582 # test suite even though there are __reduce__ methods in several
583 # places in sql/elements.py. likely as part of
584 # test/sql/test_compare.py might be a place this can happen but
585 # this still relies upon a strategy for table metadata as we have
586 # in serializer.
587
588 f1 = func.row_number().over()
589
590 self.assert_compile(
591 pickle.loads(pickle.dumps(f1)),
592 "row_number() OVER ()",
593 )
594
595 def test_pickle_within_group(self):
596 """test #6520"""

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
overMethod · 0.45
loadsMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected