mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Make commandline file unittest more stable
This commit is contained in:
parent
fea8d38d95
commit
5be88649f6
1 changed files with 4 additions and 2 deletions
|
|
@ -8,8 +8,10 @@ class BeeGraphicsViewTestCase(BeeTestCase):
|
|||
|
||||
@patch('beeref.view.BeeGraphicsView.open_from_file')
|
||||
def test_init_without_filename(self, open_file_mock):
|
||||
BeeGraphicsView(self.app)
|
||||
open_file_mock.assert_not_called()
|
||||
with patch('beeref.view.commandline_args') as args_mock:
|
||||
args_mock.filename = None
|
||||
BeeGraphicsView(self.app)
|
||||
open_file_mock.assert_not_called()
|
||||
|
||||
@patch('beeref.view.BeeGraphicsView.open_from_file')
|
||||
def test_init_with_filename(self, open_file_mock):
|
||||
|
|
|
|||
Loading…
Reference in a new issue