-
-
Save six8/7753342 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pingspot.dal.users import UserService | |
import uuid | |
def test_foursquare_auth_token(dal, uniqueuser): | |
user = uniqueuser() | |
auth_token = str(uuid.uuid4()) | |
# No need to return anything, an error will be raised if something went wrong | |
dal.users.set_foursquare_auth_token(user, auth_token) | |
saved_user = dal.users.get(user.id) | |
assert saved_user.foursquare_auth_token == auth_token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment