Esempio n. 1
0
    def __init__(self, context):
        super(RepoHistorySection, self).__init__('history', _('show sync and publish history'))
        self.context = context
        self.prompt = context.prompt

        self.add_command(history_commands.SyncHistoryCommand(context))
        self.add_command(history_commands.PublishHistoryCommand(context))
Esempio n. 2
0
 def setUp(self):
     super(SyncHistoryCommandTests, self).setUp()
     self.command = history.SyncHistoryCommand(self.context)
     # Set a default argument list for the command and return value for the server
     self.arguments = {
         OPTION_REPO_ID.keyword: 'test-repo',
         history.OPTION_LIMIT.keyword: None,
         history.OPTION_SORT.keyword: None,
         history.OPTION_START_DATE.keyword: None,
         history.OPTION_END_DATE.keyword: None,
         history.FLAG_DETAILS.keyword: False
     }
     self.server_mock.request.return_value = 200, []