File: test_custom_object_repr.ambr

package info (click to toggle)
python-syrupy 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,396 kB
  • sloc: python: 5,982; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# serializer version: 1
# name: test_snapshot_object_as_named_tuple_class
  MyCustomReprClass(
    prop2='a',
    prop3=set({
      1,
      2,
      3,
    }),
  )
# ---
# name: test_snapshot_custom_class
  MyCustomClass(
    prop1=1,
    prop2='a',
    prop3=set({
      1,
      2,
      3,
    }),
  )
# ---
# name: test_snapshot_custom_repr_class
  MyCustomReprClass(
    prop1=1,
    prop2='a',
    prop3={1, 2, 3},
  )
# ---