MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pickle_over

Method test_pickle_over

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

Source from the content-addressed store, hash-verified

635 assert True
636
637 def test_pickle_over(self):
638 # TODO: the test/sql package lacks a comprehensive pickling
639 # test suite even though there are __reduce__ methods in several
640 # places in sql/elements.py. likely as part of
641 # test/sql/test_compare.py might be a place this can happen but
642 # this still relies upon a strategy for table metadata as we have
643 # in serializer.
644
645 f1 = func.row_number().over()
646
647 self.assert_compile(
648 pickle.loads(pickle.dumps(f1)),
649 "row_number() OVER ()",
650 )
651
652 def test_pickle_within_group(self):
653 """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