Verified Commit adcd5cd3 authored by Štěpán Henek's avatar Štěpán Henek 🐻
Browse files

TestGetPasswd removed (api changed)

parent 639dcaa6
Pipeline #31632 passed with stage
in 59 seconds
......@@ -4,12 +4,11 @@ There are tests
1) on structure of ClientException
2) on validate type function type_target_path
3) on validate type function type_filepath
4) on returned password from get_password function
5) on removing files when remove_encrypted_backup was called
6) on raising SSBackupsException exception when encrypt_backups was called
7) on raising SSBackupsException exception when decrypt_backups was called
8) on raising SSBackupsException exception when get_registration_code was called
9) on raising SSBackupsException exception when call_rest_api was called
4) on removing files when remove_encrypted_backup was called
5) on raising SSBackupsException exception when encrypt_backups was called
6) on raising SSBackupsException exception when decrypt_backups was called
7) on raising SSBackupsException exception when get_registration_code was called
8) on raising SSBackupsException exception when call_rest_api was called
"""
import unittest
......@@ -17,7 +16,7 @@ import json
from subprocess import CalledProcessError
from mock import patch
from ssbackups import SSBackupsException, type_target_path, type_filepath, get_password,\
from ssbackups import SSBackupsException, type_target_path, type_filepath, \
remove_encrypted_backup, encrypt_backup, decrypt_backup, get_registration_code, call_rest_api
......@@ -114,21 +113,6 @@ class TestTypeFilePath(unittest.TestCase):
)
class TestGetPasswd(unittest.TestCase):
"""Some tests that get_password returns password as it was comes in
"""
def test_get_password_on_receive_passwd(self):
"""
get_passwd should returns what it received - password
:return:
"""
passwd = 'secret'
self.assertTrue(
passwd == get_password(passwd)
)
class TestRemoveEncryptedBackup(unittest.TestCase):
"""Some tests to assure that os.remove was called to remove backup from disk
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment