Files
synology-api-python/tests/api_data/dsm_6/const_6_api_auth.py
Oncleben31 9622f5d314 Migrate to poetry, nox and GitHub actions (#78)
* 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
2020-10-21 21:38:25 +02:00

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}