Merge pull request #5646 from nicoddemus/mark-info-docs
Update MarkDecorator docs
This commit is contained in:
		
						commit
						b2839c4084
					
				| 
						 | 
					@ -179,9 +179,7 @@ class Mark:
 | 
				
			||||||
@attr.s
 | 
					@attr.s
 | 
				
			||||||
class MarkDecorator:
 | 
					class MarkDecorator:
 | 
				
			||||||
    """ A decorator for test functions and test classes.  When applied
 | 
					    """ A decorator for test functions and test classes.  When applied
 | 
				
			||||||
    it will create :class:`MarkInfo` objects which may be
 | 
					    it will create :class:`Mark` objects which are often created like this::
 | 
				
			||||||
    :ref:`retrieved by hooks as item keywords <excontrolskip>`.
 | 
					 | 
				
			||||||
    MarkDecorator instances are often created like this::
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mark1 = pytest.mark.NAME              # simple MarkDecorator
 | 
					        mark1 = pytest.mark.NAME              # simple MarkDecorator
 | 
				
			||||||
        mark2 = pytest.mark.NAME(name1=value) # parametrized MarkDecorator
 | 
					        mark2 = pytest.mark.NAME(name1=value) # parametrized MarkDecorator
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue