mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Backups: fix test
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
50e0bae67c
commit
c8554bef9d
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user