Skip to content

Commit fb617b1

Browse files
committed
Bump config and raise length of hashed_password column
1 parent afecb6b commit fb617b1

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

fastapi_users_db_sqlalchemy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SQLAlchemyBaseUserTable:
3232

3333
id = Column(GUID, primary_key=True)
3434
email = Column(String(length=320), unique=True, index=True, nullable=False)
35-
hashed_password = Column(String(length=72), nullable=False)
35+
hashed_password = Column(String(length=1024), nullable=False)
3636
is_active = Column(Boolean, default=True, nullable=False)
3737
is_superuser = Column(Boolean, default=False, nullable=False)
3838
is_verified = Column(Boolean, default=False, nullable=False)

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
[tool.isort]
2+
profile = "black"
3+
4+
[tool.pytest.ini_options]
5+
asyncio_mode = "auto"
6+
addopts = "--ignore=test_build.py"
7+
markers = ["db"]
8+
19
[build-system]
210
requires = ["flit_core >=2,<3"]
311
build-backend = "flit_core.buildapi"

requirements.dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ requests
77
isort
88
pytest-asyncio
99
flake8-docstrings
10+
greenlet
1011
black
1112
mypy
1213
codecov

setup.cfg

-12
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ exclude = docs
1212
max-line-length = 88
1313
docstring-convention = numpy
1414
ignore = D1
15-
16-
[isort]
17-
profile = black
18-
19-
[tool:pytest]
20-
addopts = --ignore=test_build.py
21-
markers =
22-
authentication
23-
db
24-
fastapi_users
25-
oauth
26-
router

tests/conftest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ class UserDBOAuth(UserOAuth, UserDB):
3232
@pytest.fixture(scope="session")
3333
def event_loop():
3434
"""Force the pytest-asyncio loop to be the main one."""
35-
loop = asyncio.get_event_loop()
35+
loop = asyncio.new_event_loop()
3636
yield loop
37+
loop.close()
3738

3839

3940
@pytest.fixture

0 commit comments

Comments
 (0)