You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just for the record, the old methods that we used in the base test class as abstracts were:
deftest_smoke(self, device, dtype):
# test the function with different parameters arguments, to check if the function at least runs with all the# arguments allowed.passdeftest_exception(self, device, dtype):
# tests the exceptions which can occur on your function# example of how to properly test your exceptions# with pytest.raises(<raised Error>) as errinfo:# your_function(<set of parameters that raise the error>)# assert '<msg of error>' in str(errinfo)passdeftest_cardinality(self, device, dtype):
# test if with different parameters the shape of the output is the expectedpassdeftest_feature_foo(self, device, dtype):
# test basic functionalitypassdeftest_feature_bar(self, device, dtype):
# test another functionalitypassdeftest_gradcheck(self, device):
# test the functionality gradients# Uses `self.gradcheck(...)`pass
The text was updated successfully, but these errors were encountered:
Originally posted by @edgarriba in #2745 (comment)
just for the record, the old methods that we used in the base test class as abstracts were:
The text was updated successfully, but these errors were encountered: