コード例 #1
0
ファイル: test_collaborators.py プロジェクト: snshn/snapcraft
 def test_edit_collaborators_must_open_editor_environment(self):
     self.useFixture(fixtures.EnvironmentVariable("EDITOR", "test-editor"))
     assertions._edit_developers({})
     self.check_call_mock.assert_called_with(["test-editor", mock.ANY])
コード例 #2
0
 def test_edit_collaborators_must_open_editor(self):
     self.useFixture(fixtures.EnvironmentVariable('EDITOR', self.editor))
     assertions._edit_developers({})
     self.check_call_mock.assert_called_with([self.expected, mock.ANY])
コード例 #3
0
ファイル: test_collaborators.py プロジェクト: mvo5/snapcraft
 def test_edit_collaborators_must_open_editor(self):
     self.useFixture(fixtures.EnvironmentVariable("EDITOR", self.editor))
     assertions._edit_developers({})
     self.check_call_mock.assert_called_with([self.expected, mock.ANY])