Skip to content

Instantly share code, notes, and snippets.

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)