Debian Codegraph @

test/units/utils/expected_serialization_profiles/fallback_to_str.txt

raw
1 {
2 _TestParameters(profile_name='fallback_to_str', value=None): _TestOutput(payload='null', round_trip=None, tags=()),
3 _TestParameters(profile_name='fallback_to_str', value=None, tags=(Deprecated(msg='x'),)): _TestOutput(payload='null', round_trip=None, tags=()),
4 _TestParameters(profile_name='fallback_to_str', value=True): _TestOutput(payload='true', round_trip=True, tags=()),
5 _TestParameters(profile_name='fallback_to_str', value=True, tags=(Deprecated(msg='x'),)): _TestOutput(payload='true', round_trip=True, tags=()),
6 _TestParameters(profile_name='fallback_to_str', value=1): _TestOutput(payload='1', round_trip=1, tags=()),
7 _TestParameters(profile_name='fallback_to_str', value=1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='1', round_trip=1, tags=()),
8 _TestParameters(profile_name='fallback_to_str', value=1.1): _TestOutput(payload='1.1', round_trip=1.1, tags=()),
9 _TestParameters(profile_name='fallback_to_str', value=1.1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='1.1', round_trip=1.1, tags=()),
10 _TestParameters(profile_name='fallback_to_str', value='hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
11 _TestParameters(profile_name='fallback_to_str', value='hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
12 _TestParameters(profile_name='fallback_to_str', value='汉语'): _TestOutput(payload='"\\u6c49\\u8bed"', round_trip='汉语', tags=()),
13 _TestParameters(profile_name='fallback_to_str', value='汉语', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\u6c49\\u8bed"', round_trip='汉语', tags=()),
14 _TestParameters(profile_name='fallback_to_str', value=b'hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
15 _TestParameters(profile_name='fallback_to_str', value=b'hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
16 _TestParameters(profile_name='fallback_to_str', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc)): _TestOutput(payload='"2024-01-02T03:04:05.000006+00:00"', round_trip='2024-01-02T03:04:05.000006+00:00', tags=()),
17 _TestParameters(profile_name='fallback_to_str', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"2024-01-02T03:04:05.000006+00:00"', round_trip='2024-01-02T03:04:05.000006+00:00', tags=()),
18 _TestParameters(profile_name='fallback_to_str', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1)): _TestOutput(payload='"01:02:03.000004+00:00"', round_trip='01:02:03.000004+00:00', tags=()),
19 _TestParameters(profile_name='fallback_to_str', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"01:02:03.000004+00:00"', round_trip='01:02:03.000004+00:00', tags=()),
20 _TestParameters(profile_name='fallback_to_str', value=datetime.date(2024, 1, 2)): _TestOutput(payload='"2024-01-02"', round_trip='2024-01-02', tags=()),
21 _TestParameters(profile_name='fallback_to_str', value=datetime.date(2024, 1, 2), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"2024-01-02"', round_trip='2024-01-02', tags=()),
22 _TestParameters(profile_name='fallback_to_str', value=(1,)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
23 _TestParameters(profile_name='fallback_to_str', value=(1,), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
24 _TestParameters(profile_name='fallback_to_str', value=[1]): _TestOutput(payload='[1]', round_trip=[1], tags=()),
25 _TestParameters(profile_name='fallback_to_str', value=[1], tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
26 _TestParameters(profile_name='fallback_to_str', value=[1], lazy=True): _TestOutput(payload='[1]', round_trip=[1], tags=()),
27 _TestParameters(profile_name='fallback_to_str', value=[1], tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='[1]', round_trip=[1], tags=()),
28 _TestParameters(profile_name='fallback_to_str', value=CustomSequence([1])): _TestOutput(payload='[1]', round_trip=[1], tags=()),
29 _TestParameters(profile_name='fallback_to_str', value=CustomSequence([1]), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
30 _TestParameters(profile_name='fallback_to_str', value='hello'): _TestOutput(payload='"hello"', round_trip='hello', tags=()),
31 _TestParameters(profile_name='fallback_to_str', value='hello', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hello"', round_trip='hello', tags=()),
32 _TestParameters(profile_name='fallback_to_str', value=42): _TestOutput(payload='42', round_trip=42, tags=()),
33 _TestParameters(profile_name='fallback_to_str', value=42, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42', round_trip=42, tags=()),
34 _TestParameters(profile_name='fallback_to_str', value=42.0): _TestOutput(payload='42.0', round_trip=42.0, tags=()),
35 _TestParameters(profile_name='fallback_to_str', value=42.0, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42.0', round_trip=42.0, tags=()),
36 _TestParameters(profile_name='fallback_to_str', value={1}): _TestOutput(payload='[1]', round_trip=[1], tags=()),
37 _TestParameters(profile_name='fallback_to_str', value={1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
38 _TestParameters(profile_name='fallback_to_str', value=CustomSet([1])): _TestOutput(payload='[1]', round_trip=[1], tags=()),
39 _TestParameters(profile_name='fallback_to_str', value=CustomSet([1]), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
40 _TestParameters(profile_name='fallback_to_str', value={'a': 1}): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
41 _TestParameters(profile_name='fallback_to_str', value={'a': 1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
42 _TestParameters(profile_name='fallback_to_str', value={'a': 1}, lazy=True): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
43 _TestParameters(profile_name='fallback_to_str', value={'a': 1}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
44 _TestParameters(profile_name='fallback_to_str', value=CustomMapping({'a': 1})): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
45 _TestParameters(profile_name='fallback_to_str', value=CustomMapping({'a': 1}), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
46 _TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
47 _TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
48 _TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
49 _TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
50 _TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
51 _TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
52 _TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
53 _TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
54 _TestParameters(profile_name='fallback_to_str', value={1: 'two'}): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
55 _TestParameters(profile_name='fallback_to_str', value={1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
56 _TestParameters(profile_name='fallback_to_str', value={1: 'two'}, lazy=True): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
57 _TestParameters(profile_name='fallback_to_str', value={1: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
58 _TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
59 _TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
60 _TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, lazy=True): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
61 _TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
62 _TestParameters(profile_name='fallback_to_str', value={True: 'two'}): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
63 _TestParameters(profile_name='fallback_to_str', value={True: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
64 _TestParameters(profile_name='fallback_to_str', value={True: 'two'}, lazy=True): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
65 _TestParameters(profile_name='fallback_to_str', value={True: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
66 _TestParameters(profile_name='fallback_to_str', value={None: 'two'}): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
67 _TestParameters(profile_name='fallback_to_str', value={None: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
68 _TestParameters(profile_name='fallback_to_str', value={None: 'two'}, lazy=True): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
69 _TestParameters(profile_name='fallback_to_str', value={None: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
70 _TestParameters(profile_name='fallback_to_str', value=b'\x00'): _TestOutput(payload='"\\u0000"', round_trip='\x00', tags=()),
71 _TestParameters(profile_name='fallback_to_str', value=b'\x00', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\u0000"', round_trip='\x00', tags=()),
72 _TestParameters(profile_name='fallback_to_str', value=b'\x80'): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
73 _TestParameters(profile_name='fallback_to_str', value=b'\x80', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
74 _TestParameters(profile_name='fallback_to_str', value='\udc80'): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
75 _TestParameters(profile_name='fallback_to_str', value='\udc80', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
76 _TestParameters(profile_name='fallback_to_str', value={1: '1'}): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
77 _TestParameters(profile_name='fallback_to_str', value={1: '1'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
78 _TestParameters(profile_name='fallback_to_str', value={1: '1'}, lazy=True): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
79 _TestParameters(profile_name='fallback_to_str', value={1: '1'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
80 _TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
81 _TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
82 _TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, lazy=True): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
83 _TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
84 _TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
85 _TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
86 _TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, lazy=True): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
87 _TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
88 _TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
89 _TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
90 _TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, lazy=True): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
91 _TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
92 }