@@ -22,6 +22,7 @@ def test_style_from_dict():
22
22
blink = False ,
23
23
reverse = False ,
24
24
hidden = False ,
25
+ dim = False ,
25
26
)
26
27
assert style .get_attrs_for_style_str ("class:a" ) == expected
27
28
@@ -36,6 +37,7 @@ def test_style_from_dict():
36
37
blink = True ,
37
38
reverse = True ,
38
39
hidden = False ,
40
+ dim = False ,
39
41
)
40
42
assert style .get_attrs_for_style_str ("class:b" ) == expected
41
43
@@ -50,6 +52,7 @@ def test_style_from_dict():
50
52
blink = False ,
51
53
reverse = False ,
52
54
hidden = False ,
55
+ dim = False ,
53
56
)
54
57
assert style .get_attrs_for_style_str ("#ff0000" ) == expected
55
58
@@ -64,6 +67,7 @@ def test_style_from_dict():
64
67
blink = False ,
65
68
reverse = False ,
66
69
hidden = False ,
70
+ dim = False ,
67
71
)
68
72
assert style .get_attrs_for_style_str ("class:a #00ff00" ) == expected
69
73
@@ -77,6 +81,7 @@ def test_style_from_dict():
77
81
blink = False ,
78
82
reverse = False ,
79
83
hidden = False ,
84
+ dim = False ,
80
85
)
81
86
assert style .get_attrs_for_style_str ("#00ff00 class:a" ) == expected
82
87
@@ -101,6 +106,7 @@ def test_class_combinations_1():
101
106
blink = False ,
102
107
reverse = False ,
103
108
hidden = False ,
109
+ dim = False ,
104
110
)
105
111
assert style .get_attrs_for_style_str ("class:a class:b" ) == expected
106
112
assert style .get_attrs_for_style_str ("class:a,b" ) == expected
@@ -131,6 +137,7 @@ def test_class_combinations_2():
131
137
blink = False ,
132
138
reverse = False ,
133
139
hidden = False ,
140
+ dim = False ,
134
141
)
135
142
assert style .get_attrs_for_style_str ("class:a class:b" ) == expected
136
143
assert style .get_attrs_for_style_str ("class:a,b" ) == expected
@@ -147,6 +154,7 @@ def test_class_combinations_2():
147
154
blink = False ,
148
155
reverse = False ,
149
156
hidden = False ,
157
+ dim = False ,
150
158
)
151
159
assert style .get_attrs_for_style_str ("class:b class:a" ) == expected
152
160
assert style .get_attrs_for_style_str ("class:b,a" ) == expected
@@ -173,6 +181,7 @@ def test_substyles():
173
181
blink = False ,
174
182
reverse = False ,
175
183
hidden = False ,
184
+ dim = False ,
176
185
)
177
186
assert style .get_attrs_for_style_str ("class:a" ) == expected
178
187
@@ -186,6 +195,7 @@ def test_substyles():
186
195
blink = False ,
187
196
reverse = False ,
188
197
hidden = False ,
198
+ dim = False ,
189
199
)
190
200
assert style .get_attrs_for_style_str ("class:a.b" ) == expected
191
201
assert style .get_attrs_for_style_str ("class:a.b.c" ) == expected
@@ -201,6 +211,7 @@ def test_substyles():
201
211
blink = False ,
202
212
reverse = False ,
203
213
hidden = False ,
214
+ dim = False ,
204
215
)
205
216
assert style .get_attrs_for_style_str ("class:b" ) == expected
206
217
assert style .get_attrs_for_style_str ("class:b.a" ) == expected
@@ -215,6 +226,7 @@ def test_substyles():
215
226
blink = False ,
216
227
reverse = False ,
217
228
hidden = False ,
229
+ dim = False ,
218
230
)
219
231
assert style .get_attrs_for_style_str ("class:b.c" ) == expected
220
232
assert style .get_attrs_for_style_str ("class:b.c.d" ) == expected
@@ -234,6 +246,7 @@ def test_swap_light_and_dark_style_transformation():
234
246
blink = False ,
235
247
reverse = False ,
236
248
hidden = False ,
249
+ dim = False ,
237
250
)
238
251
after = Attrs (
239
252
color = "ffbbbb" ,
@@ -245,6 +258,7 @@ def test_swap_light_and_dark_style_transformation():
245
258
blink = False ,
246
259
reverse = False ,
247
260
hidden = False ,
261
+ dim = False ,
248
262
)
249
263
250
264
assert transformation .transform_attrs (before ) == after
@@ -260,6 +274,7 @@ def test_swap_light_and_dark_style_transformation():
260
274
blink = False ,
261
275
reverse = False ,
262
276
hidden = False ,
277
+ dim = False ,
263
278
)
264
279
after = Attrs (
265
280
color = "ansibrightred" ,
@@ -271,6 +286,7 @@ def test_swap_light_and_dark_style_transformation():
271
286
blink = False ,
272
287
reverse = False ,
273
288
hidden = False ,
289
+ dim = False ,
274
290
)
275
291
276
292
assert transformation .transform_attrs (before ) == after
0 commit comments