mirror of
https://github.com/ProtoThis/python-synology.git
synced 2025-08-11 23:56:28 +00:00

* Replace setup files with pyproject.toml Now we can use poetry to manage the package. poetry install to install the package in a venv poetry run ... to launch pylint, pytest or black * Add CI with GitHub Action Add a tests and release workflow Add release drafter Add dependabot * Remove old CI based on travis and pylint * Add linting configuration files Linting mainly based on flake8 and plugins. Add specific files for darglint and mypy. * Update .gitignore * Add test suite with nox and pre-commit Test suite inculde pre-commit, safety, mypy, tests, typguard and documentation checks. * Add .gitattributes * Update code coverage target to 80% * Code style update by Black * Update poetry lock file * Deactivate temporarly some linting tests * Add a contributing guide * Remove Python 3.6 in GitHub Action * Patch noxfile.py to be able to test mypy session * Rebase version to 1.0.0
24 lines
607 B
Python
24 lines
607 B
Python
"""DSM 6 SYNO.API.Auth data."""
|
|
from tests.const import DEVICE_TOKEN
|
|
from tests.const import ERROR_AUTH_OTP_NOT_SPECIFIED
|
|
from tests.const import SESSION_ID
|
|
from tests.const import SYNO_TOKEN
|
|
|
|
|
|
DSM_6_AUTH_LOGIN = {
|
|
"data": {"is_portal_port": False, "sid": SESSION_ID, "synotoken": SYNO_TOKEN},
|
|
"success": True,
|
|
}
|
|
DSM_6_AUTH_LOGIN_2SA = ERROR_AUTH_OTP_NOT_SPECIFIED
|
|
DSM_6_AUTH_LOGIN_2SA_OTP = {
|
|
"data": {
|
|
"did": DEVICE_TOKEN,
|
|
"is_portal_port": False,
|
|
"sid": SESSION_ID,
|
|
"synotoken": SYNO_TOKEN,
|
|
},
|
|
"success": True,
|
|
}
|
|
|
|
DSM_6_AUTH_LOGOUT = {"success": True}
|