updates test
This commit is contained in:
@@ -6,6 +6,7 @@ from pathlib import Path
|
|||||||
from .store import Store, Backup
|
from .store import Store, Backup
|
||||||
from .utils import print_warning
|
from .utils import print_warning
|
||||||
|
|
||||||
|
|
||||||
class BadConfiguration(Exception):
|
class BadConfiguration(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -53,11 +53,10 @@ class TestParseConfig(unittest.TestCase):
|
|||||||
with self.assertRaises(BadConfiguration):
|
with self.assertRaises(BadConfiguration):
|
||||||
parse_config(self.test_config)
|
parse_config(self.test_config)
|
||||||
|
|
||||||
def test_warns_on_missing_import_path(self):
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def test_raises_exception_on_store_init_failure(self):
|
def test_raises_exception_on_store_init_failure(self):
|
||||||
raise NotImplementedError
|
self.test_config.set('jpg', 'Import', '/nowhere/to/be/found')
|
||||||
|
with self.assertRaises(BadConfiguration):
|
||||||
|
parse_config(self.test_config)
|
||||||
|
|
||||||
def test_asserts_camera_path_is_present(self):
|
def test_asserts_camera_path_is_present(self):
|
||||||
self.test_config.remove_option('DEFAULT', 'camera')
|
self.test_config.remove_option('DEFAULT', 'camera')
|
||||||
|
|||||||
Reference in New Issue
Block a user