@@ -68,9 +68,10 @@ def __init__(self, *args, **kwargs):
6868 kwd_args .update (kwargs )
6969 super (SafeTestPipeline , self ).__init__ (* args , ** kwd_args )
7070
71+
7172# originally imported from veracitools v0.1.4 (now deprecated)
7273class ExpectContext (object ):
73- """ Pytest validation context, a framework for varied kinds of expectations. """
74+ """Pytest validation context, a framework for varied kinds of expectations."""
7475
7576 def __init__ (self , expected , test_func ):
7677 """
@@ -83,16 +84,16 @@ def __init__(self, expected, test_func):
8384 self ._exp = expected
8485
8586 def __enter__ (self ):
86- """ Return the instance for use as a callable. """
87+ """Return the instance for use as a callable."""
8788 return self
8889
8990 def __exit__ (self , exc_type , exc_val , exc_tb ):
9091 pass
9192
9293 def __call__ (self , * args , ** kwargs ):
93- """ Execute the instance's function, passing given args/kwargs. """
94+ """Execute the instance's function, passing given args/kwargs."""
9495 if isinstance (self ._exp , type ) and issubclass (self ._exp , Exception ):
9596 with pytest .raises (self ._exp ):
9697 self ._f (* args , ** kwargs )
9798 else :
98- assert self ._exp == self ._f (* args , ** kwargs )
99+ assert self ._exp == self ._f (* args , ** kwargs )
0 commit comments