Skip to content

Commit

Permalink
sort typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fedden committed Feb 12, 2021
1 parent 645136a commit 1a3bef2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Binary file added gotrue/.client.py.swp
Binary file not shown.
3 changes: 2 additions & 1 deletion gotrue/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
__version__ = '0.2.0'

from . import client
from . import api
from . import client
from . import lib
from .client import Client
2 changes: 1 addition & 1 deletion gotrue/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing import Any, Callable, Dict, Optional

from gotrue.api import GoTrueApi
from gotrue.libs.contants import GOTRUE_URL, STORAGE_KEY
from gotrue.lib.constants import GOTRUE_URL, STORAGE_KEY


HTTPRegexp = "/^http://"
Expand Down
Binary file added tests/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions tests/test_gotrue.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from gotrue import __version__
import pytest


@pytest.fixture
def client():
from gotrue import client

return client.Client("http://localhost:9999")


def test_settings(client):
res = client.settings()
assert (res.status_code == 200)
assert res.status_code == 200


def test_refresh_access_token():
Expand All @@ -34,9 +34,9 @@ def test_logout(self):

def test_send_magic_link(client):
res = client.send_magic_link("someemail@gmail.com")
assert (res.status_code == 200 or res.status_code == 429)
assert res.status_code == 200 or res.status_code == 429


def test_recover_email(client):
res = client.recover("someemail@gmail.com")
assert (res.status_code == 200 or res.status_code == 429)
assert res.status_code == 200 or res.status_code == 429

0 comments on commit 1a3bef2

Please sign in to comment.