Closed fabtesta closed 5 months ago
Hi @N4S4,
to cover the login issues related to #159, I wrote a test class with a config file that could help to cover also the OTP use-case.
## no otp { "synology_ip": "192.168.1.xyz", "synology_port": "5001", "synology_user": "user_without_otp", "synology_password": "password", "synology_secure": true, "dsm_version": 7, "otp_code": null } ## otp { "synology_ip": "192.168.1.xyz", "synology_port": "5001", "synology_user": "user_with_otp", "synology_password": "password", "synology_secure": true, "dsm_version": 7, "otp_code": "123456" }
python -m unittest test_syno_api.py
cool! thank you!
Hi @N4S4,
to cover the login issues related to #159, I wrote a test class with a config file that could help to cover also the OTP use-case.
config-tests.json examples
from tests folder