Beispiel #1
0
 def test_write_changes_declaration_when_write_changes_is_false(
         self, mock_login):
     bot = AbstractBotJob(write_changes=False)
     bot.logger.info = Mock()
     bot.write_changes_declaration()
     bot.logger.info.assert_called_with(
         'write_changes is FALSE. No external modifications will be made.'
     )  # TODO
Beispiel #2
0
 def test_write_changes_declaration_when_write_changes_is_true(
         self, mock_login):
     bot = AbstractBotJob(write_changes=True)
     bot.logger.info = Mock()
     bot.write_changes_declaration()
     bot.logger.info.assert_called_with(
         'write_changes is TRUE. Permanent modifications may be made.'
     )  # TODO