kopia lustrzana https://github.com/ctjacobs/pyqso
flake8
rodzic
43b647b19e
commit
73f785af7c
|
@ -55,7 +55,7 @@ class TestLogbook(unittest.TestCase):
|
|||
@mock.patch('pyqso.auxiliary_dialogs.handle_gtk_dialog')
|
||||
def test_open_invalid_logbook(self, mock_handle_gtk_dialog):
|
||||
""" Open an invalid database file (comprising only one line of plain text) and check that an error occurs. """
|
||||
path_to_invalid_database = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir, "res/invalid.db")
|
||||
path_to_invalid_database = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir, "res/invalid.db")
|
||||
opened = self.logbook.open(path=path_to_invalid_database, render=False)
|
||||
assert(not opened)
|
||||
assert(self.logbook.logs is None)
|
||||
|
|
Ładowanie…
Reference in New Issue