Backups: fix test

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Michael Pimmer 2018-10-11 00:05:14 +00:00 committed by James Valleroy
parent 50e0bae67c
commit c8554bef9d
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -26,7 +26,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile
from plinth import cfg, module_loader
from plinth.errors import PlinthError
from .. import api, forms, get_export_locations, get_location_path
from .. import api, forms, get_location_path
# pylint: disable=protected-access
@ -137,17 +137,6 @@ class TestBackupProcesses(unittest.TestCase):
]
self.assertEqual(returned_apps, expected_apps)
@staticmethod
def test_export_locations():
"""Check get_export_locations returns a list of locations."""
locations = get_export_locations()
assert locations
for location in locations:
assert isinstance(location, dict)
assert isinstance(location['path'], str)
assert isinstance(location['device'], str)
assert str(location['label'])
@staticmethod
@patch('plinth.module_loader.loaded_modules.items')
def test__get_apps_in_order(modules):