Backups: fix test

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Michael Pimmer authored and James Valleroy committed 2018-11-17 08:59:53 -05:00
1 parent 50e0bae67c
commit c8554bef9d
1 file changed
+1 -12
+1 -12
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):