API - update python dependencies
This commit is contained in:
parent
98ac4a5a5b
commit
1f8754a4f9
5
docs/_static/pygments.css
vendored
5
docs/_static/pygments.css
vendored
@ -1,3 +1,8 @@
|
|||||||
|
pre { line-height: 125%; margin: 0; }
|
||||||
|
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
||||||
|
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
||||||
|
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
|
||||||
|
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
|
||||||
.highlight .hll { background-color: #ffffcc }
|
.highlight .hll { background-color: #ffffcc }
|
||||||
.highlight { background: #f8f8f8; }
|
.highlight { background: #f8f8f8; }
|
||||||
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
|
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
|
||||||
|
@ -1106,7 +1106,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -616,7 +616,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -267,7 +267,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -153,7 +153,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -250,7 +250,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -460,7 +460,7 @@ Authenticated user must be an admin</p>
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -398,7 +398,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -490,7 +490,7 @@ one admin</p>
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -411,7 +411,7 @@ add URL interceptors to simplify routes definition</p></li>
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -262,7 +262,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -315,7 +315,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -213,7 +213,7 @@ Map</a>.</div>
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -416,7 +416,7 @@ Related environment variables are needed to initialize database.</p>
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -148,7 +148,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -149,7 +149,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -142,7 +142,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
© Copyright 2018 - 2020, SamR1.<br/>
|
© Copyright 2018 - 2020, SamR1.<br/>
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.0.<br/>
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.2.1.<br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -144,7 +144,7 @@ def update_application_config(auth_user_id):
|
|||||||
|
|
||||||
@config_blueprint.route('/ping', methods=['GET'])
|
@config_blueprint.route('/ping', methods=['GET'])
|
||||||
def health_check():
|
def health_check():
|
||||||
""" health check endpoint
|
"""health check endpoint
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
|
@ -887,7 +887,11 @@ class TestRegistrationConfiguration:
|
|||||||
assert data['message'] == 'Error. Registration is disabled.'
|
assert data['message'] == 'Error. Registration is disabled.'
|
||||||
|
|
||||||
def test_it_does_not_disable_registration_on_user_registration(
|
def test_it_does_not_disable_registration_on_user_registration(
|
||||||
self, app_no_config, app_config, user_1_admin, user_2,
|
self,
|
||||||
|
app_no_config,
|
||||||
|
app_config,
|
||||||
|
user_1_admin,
|
||||||
|
user_2,
|
||||||
):
|
):
|
||||||
app_config.max_users = 4
|
app_config.max_users = 4
|
||||||
client = app_no_config.test_client()
|
client = app_no_config.test_client()
|
||||||
@ -985,7 +989,12 @@ class TestPasswordUpdate:
|
|||||||
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
'/api/auth/password/update',
|
'/api/auth/password/update',
|
||||||
data=json.dumps(dict(token='xxx', password='1234567',)),
|
data=json.dumps(
|
||||||
|
dict(
|
||||||
|
token='xxx',
|
||||||
|
password='1234567',
|
||||||
|
)
|
||||||
|
),
|
||||||
content_type='application/json',
|
content_type='application/json',
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1000,7 +1009,10 @@ class TestPasswordUpdate:
|
|||||||
response = client.post(
|
response = client.post(
|
||||||
'/api/auth/password/update',
|
'/api/auth/password/update',
|
||||||
data=json.dumps(
|
data=json.dumps(
|
||||||
dict(password='12345678', password_conf='12345678',)
|
dict(
|
||||||
|
password='12345678',
|
||||||
|
password_conf='12345678',
|
||||||
|
)
|
||||||
),
|
),
|
||||||
content_type='application/json',
|
content_type='application/json',
|
||||||
)
|
)
|
||||||
@ -1015,7 +1027,12 @@ class TestPasswordUpdate:
|
|||||||
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
'/api/auth/password/update',
|
'/api/auth/password/update',
|
||||||
data=json.dumps(dict(token='xxx', password_conf='12345678',)),
|
data=json.dumps(
|
||||||
|
dict(
|
||||||
|
token='xxx',
|
||||||
|
password_conf='12345678',
|
||||||
|
)
|
||||||
|
),
|
||||||
content_type='application/json',
|
content_type='application/json',
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1029,7 +1046,12 @@ class TestPasswordUpdate:
|
|||||||
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
'/api/auth/password/update',
|
'/api/auth/password/update',
|
||||||
data=json.dumps(dict(token='xxx', password='12345678',)),
|
data=json.dumps(
|
||||||
|
dict(
|
||||||
|
token='xxx',
|
||||||
|
password='12345678',
|
||||||
|
)
|
||||||
|
),
|
||||||
content_type='application/json',
|
content_type='application/json',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -248,7 +248,11 @@ class TestGetUsers:
|
|||||||
|
|
||||||
@patch('fittrackee_api.users.users.USER_PER_PAGE', 2)
|
@patch('fittrackee_api.users.users.USER_PER_PAGE', 2)
|
||||||
def test_it_gets_first_page_on_users_list(
|
def test_it_gets_first_page_on_users_list(
|
||||||
self, app, user_1, user_2, user_3,
|
self,
|
||||||
|
app,
|
||||||
|
user_1,
|
||||||
|
user_2,
|
||||||
|
user_3,
|
||||||
):
|
):
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
resp_login = client.post(
|
resp_login = client.post(
|
||||||
@ -279,7 +283,11 @@ class TestGetUsers:
|
|||||||
|
|
||||||
@patch('fittrackee_api.users.users.USER_PER_PAGE', 2)
|
@patch('fittrackee_api.users.users.USER_PER_PAGE', 2)
|
||||||
def test_it_gets_next_page_on_users_list(
|
def test_it_gets_next_page_on_users_list(
|
||||||
self, app, user_1, user_2, user_3,
|
self,
|
||||||
|
app,
|
||||||
|
user_1,
|
||||||
|
user_2,
|
||||||
|
user_3,
|
||||||
):
|
):
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
resp_login = client.post(
|
resp_login = client.post(
|
||||||
@ -309,7 +317,11 @@ class TestGetUsers:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def test_it_gets_empty_next_page_on_users_list(
|
def test_it_gets_empty_next_page_on_users_list(
|
||||||
self, app, user_1, user_2, user_3,
|
self,
|
||||||
|
app,
|
||||||
|
user_1,
|
||||||
|
user_2,
|
||||||
|
user_3,
|
||||||
):
|
):
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
resp_login = client.post(
|
resp_login = client.post(
|
||||||
@ -339,7 +351,11 @@ class TestGetUsers:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def test_it_gets_user_list_with_2_per_page(
|
def test_it_gets_user_list_with_2_per_page(
|
||||||
self, app, user_1, user_2, user_3,
|
self,
|
||||||
|
app,
|
||||||
|
user_1,
|
||||||
|
user_2,
|
||||||
|
user_3,
|
||||||
):
|
):
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
resp_login = client.post(
|
resp_login = client.post(
|
||||||
@ -369,7 +385,11 @@ class TestGetUsers:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def test_it_gets_next_page_on_user_list_with_2_per_page(
|
def test_it_gets_next_page_on_user_list_with_2_per_page(
|
||||||
self, app, user_1, user_2, user_3,
|
self,
|
||||||
|
app,
|
||||||
|
user_1,
|
||||||
|
user_2,
|
||||||
|
user_3,
|
||||||
):
|
):
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
resp_login = client.post(
|
resp_login = client.post(
|
||||||
|
@ -250,7 +250,7 @@ def get_single_user(auth_user_id, user_name):
|
|||||||
|
|
||||||
@users_blueprint.route('/users/<user_name>/picture', methods=['GET'])
|
@users_blueprint.route('/users/<user_name>/picture', methods=['GET'])
|
||||||
def get_picture(user_name):
|
def get_picture(user_name):
|
||||||
""" get user picture
|
"""get user picture
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ def get_user_token(user_id, password_reset=False):
|
|||||||
'sub': user_id,
|
'sub': user_id,
|
||||||
}
|
}
|
||||||
return jwt.encode(
|
return jwt.encode(
|
||||||
payload, current_app.config.get('SECRET_KEY'), algorithm='HS256',
|
payload,
|
||||||
|
current_app.config.get('SECRET_KEY'),
|
||||||
|
algorithm='HS256',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
1178
fittrackee_api/poetry.lock
generated
1178
fittrackee_api/poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,7 @@ dramatiq = {extras = ["redis"], version = "^1.9.0"}
|
|||||||
flask-dramatiq = "^0.6.0"
|
flask-dramatiq = "^0.6.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
black = "^19.10b0"
|
black = "^20.8b1"
|
||||||
pytest = "^6.0"
|
pytest = "^6.0"
|
||||||
pytest-black = "^0.3.10"
|
pytest-black = "^0.3.10"
|
||||||
pytest-cov = "^2.10"
|
pytest-cov = "^2.10"
|
||||||
@ -36,7 +36,7 @@ sphinxcontrib-httpdomain = "^1.7"
|
|||||||
sphinx-bootstrap-theme = "^0.7.1"
|
sphinx-bootstrap-theme = "^0.7.1"
|
||||||
recommonmark = "^0.6.0"
|
recommonmark = "^0.6.0"
|
||||||
pyopenssl = "^19.0"
|
pyopenssl = "^19.0"
|
||||||
freezegun = "^0.3.15"
|
freezegun = "^1.0.0"
|
||||||
|
|
||||||
[tool.pytest]
|
[tool.pytest]
|
||||||
norecursedirs = "fittrackee_api/.venv"
|
norecursedirs = "fittrackee_api/.venv"
|
||||||
|
Loading…
Reference in New Issue
Block a user