@@ -193,17 +193,18 @@ def test_function():
193
193
pass
194
194
195
195
When a MarkDecorator instance is called it does the following:
196
- 1. If called with a single class as its only positional argument and no
197
- additional keyword arguments, it attaches itself to the class so it
198
- gets applied automatically to all test cases found in that class.
199
- 2. If called with a single function as its only positional argument and
200
- no additional keyword arguments, it attaches a MarkInfo object to the
201
- function, containing all the arguments already stored internally in
202
- the MarkDecorator.
203
- 3. When called in any other case, it performs a 'fake construction' call,
204
- i.e. it returns a new MarkDecorator instance with the original
205
- MarkDecorator's content updated with the arguments passed to this
206
- call.
196
+
197
+ 1. If called with a single class as its only positional argument and no
198
+ additional keyword arguments, it attaches itself to the class so it
199
+ gets applied automatically to all test cases found in that class.
200
+ 2. If called with a single function as its only positional argument and
201
+ no additional keyword arguments, it attaches a MarkInfo object to the
202
+ function, containing all the arguments already stored internally in
203
+ the MarkDecorator.
204
+ 3. When called in any other case, it performs a 'fake construction' call,
205
+ i.e. it returns a new MarkDecorator instance with the original
206
+ MarkDecorator's content updated with the arguments passed to this
207
+ call.
207
208
208
209
Note: The rules above prevent MarkDecorator objects from storing only a
209
210
single function or class reference as their positional argument with no
0 commit comments