Skip to content

Commit c29db39

Browse files
committed
[test] Cleanup pycode in yaml testfiles
1 parent 96d7a82 commit c29db39

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

test/resources/version_conversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Document:
1111
properties:
1212
- name: prop_name
1313
values:
14-
- dtype: !!python/object/apply:odml.dtypes.DType
14+
- dtype:
1515
- string
1616
value: '[''one'', ''two'']'
17-
- dtype: !!python/object/apply:odml.dtypes.DType
17+
- dtype:
1818
- int
1919
value: '1'
2020
odml-version: '1'

test/resources/version_conversion_int.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ Document:
1414
values:
1515
- dtype: string
1616
- definition: def val 1
17-
dtype: !!python/object/apply:odml.dtypes.DType
17+
dtype:
1818
- string
1919
filename: filename val 1
2020
reference: ref val 1
2121
uncertainty: 11
2222
unit: arbitrary
2323
value: '1'
2424
- definition: def val 2
25-
dtype: !!python/object/apply:odml.dtypes.DType
25+
dtype:
2626
- int
2727
filename: filename val 2
2828
reference: ref val 2
2929
uncertainty: 12
3030
unit: arbitrary 2
3131
value: '2'
3232
- definition: def val 3
33-
dtype: !!python/object/apply:odml.dtypes.DType
33+
dtype:
3434
- string
3535
filename: filename val 3
3636
reference: ref val 3
@@ -44,63 +44,63 @@ Document:
4444
values:
4545
- dtype: string
4646
- definition: def val 1
47-
dtype: !!python/object/apply:odml.dtypes.DType
47+
dtype:
4848
- int
4949
filename: filename val 1
5050
reference: ref val 1
5151
uncertainty: 12
5252
unit: arbitrary
5353
value: '1'
5454
- definition: def val 1
55-
dtype: !!python/object/apply:odml.dtypes.DType
55+
dtype:
5656
- int
5757
filename: filename val 1
5858
reference: ref val 1
5959
uncertainty: 12
6060
unit: arbitrary
6161
value: '2'
6262
- definition: def val 1
63-
dtype: !!python/object/apply:odml.dtypes.DType
63+
dtype:
6464
- int
6565
filename: filename val 1
6666
reference: ref val 1
6767
uncertainty: 12
6868
unit: arbitrary
6969
value: '3'
7070
- definition: def val 1
71-
dtype: !!python/object/apply:odml.dtypes.DType
71+
dtype:
7272
- int
7373
filename: filename val 1
7474
reference: ref val 1
7575
uncertainty: 12
7676
unit: arbitrary
7777
value: '4'
7878
- definition: def val 1
79-
dtype: !!python/object/apply:odml.dtypes.DType
79+
dtype:
8080
- int
8181
filename: filename val 1
8282
reference: ref val 1
8383
uncertainty: 12
8484
unit: arbitrary
8585
value: '4'
8686
- definition: def val 1
87-
dtype: !!python/object/apply:odml.dtypes.DType
87+
dtype:
8888
- int
8989
filename: filename val 1
9090
reference: ref val 1
9191
uncertainty: 12
9292
unit: arbitrary
9393
value: '4'
9494
- definition: def val 1
95-
dtype: !!python/object/apply:odml.dtypes.DType
95+
dtype:
9696
- int
9797
filename: filename val 1
9898
reference: ref val 1
9999
uncertainty: 12
100100
unit: arbitrary
101101
value: '4'
102102
- definition: def val 1
103-
dtype: !!python/object/apply:odml.dtypes.DType
103+
dtype:
104104
- int
105105
filename: filename val 1
106106
reference: ref val 1
@@ -132,31 +132,31 @@ Document:
132132
values:
133133
- dtype: string
134134
- definition: def val 1
135-
dtype: !!python/object/apply:odml.dtypes.DType
135+
dtype:
136136
- int
137137
filename: filename val 1
138138
reference: ref val 1
139139
uncertainty: 12
140140
unit: arbitrary
141141
value: '4'
142142
- definition: def val 1
143-
dtype: !!python/object/apply:odml.dtypes.DType
143+
dtype:
144144
- int
145145
filename: filename val 1
146146
reference: ref val 1
147147
uncertainty: 12
148148
unit: arbitrary
149149
value: '4'
150150
- definition: def val 1
151-
dtype: !!python/object/apply:odml.dtypes.DType
151+
dtype:
152152
- int
153153
filename: filename val 1
154154
reference: ref val 1
155155
uncertainty: 12
156156
unit: arbitrary
157157
value: '4'
158158
- definition: def val 1
159-
dtype: !!python/object/apply:odml.dtypes.DType
159+
dtype:
160160
- int
161161
filename: filename val 1
162162
reference: ref val 1

0 commit comments

Comments
 (0)