def test_schema_dict(): spec = { 'name': 'sorted', 'order': 'both', } assert OrderSchema.from_any(spec) == Sorted(order='both')
def test_schema_list(): assert OrderSchema.from_any(['Shuffle', 2]) == Shuffle(2)
def test_schema_string(): assert OrderSchema.from_any('Ordering') == Ordering()