Remove assert statement from non-test files

This commit is contained in:
deepsource-autofix[bot] 2020-11-08 21:48:49 +00:00 committed by GitHub
parent 44cd1fd974
commit dd50a9b13e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 637 additions and 323 deletions

View file

@ -25,7 +25,8 @@ def invalid_token_fixture(request):
class TestCheckToken:
def test_valid(self):
assert check_token(VALID_TOKEN) is True
if check_token(VALID_TOKEN) is not True:
raise AssertionError
def test_invalid_token(self, invalid_token):
with pytest.raises(ValidationError):