MCPcopy Index your code
hub / github.com/python/cpython / TestMixedDateFunction

Class TestMixedDateFunction

Lib/test/test_enum.py:1195–1205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193
1194
1195class TestMixedDateFunction(_EnumTests, _MixedOutputTests, unittest.TestCase):
1196 #
1197 values = [date(2021, 12, 25), date(2020, 3, 15), date(2019, 11, 27)]
1198 source_values = [(2021, 12, 25), (2020, 3, 15), (2019, 11, 27)]
1199 #
1200 # staticmethod decorator will be added by EnumType if not present
1201 def _generate_next_value_(name, start, count, last_values):
1202 values = [(2021, 12, 25), (2020, 3, 15), (2019, 11, 27)]
1203 return values[count]
1204 #
1205 enum_type = Enum('enum_type', {'_generate_next_value_':_generate_next_value_}, type=date)
1206
1207
1208class TestMinimalDateClass(_EnumTests, _MinimalOutputTests, unittest.TestCase):

Callers

nothing calls this directly

Calls 2

dateClass · 0.90
EnumClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…