add tests to konviva
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import pytest
|
||||
|
||||
import konviva
|
||||
from config import KONVIVA_API_URL
|
||||
|
||||
@@ -9,3 +11,8 @@ def test_konviva_token():
|
||||
|
||||
redirect_uri = konviva.redirect_uri(token)
|
||||
assert KONVIVA_API_URL in redirect_uri
|
||||
|
||||
|
||||
def test_konviva_token_error():
|
||||
with pytest.raises(konviva.KonvivaError):
|
||||
konviva.token('sergio@doesnotexist.com')
|
||||
|
||||
Reference in New Issue
Block a user