~rodsmith/checkbox/smart-utf-probs

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/session/assistant.py

"automatic merge of lp:~kissiel/checkbox/fix-1501354-back-after-testplan-selected/ by tarmac [r=zyga][bug=1501354][author=kissiel]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
        UsageExpectation.of(self).enforce()
590
590
        test_plan = self._context.get_unit(test_plan_id, 'test plan')
591
591
        self._manager.test_plans = (test_plan, )
592
 
        if False:
593
 
            """
594
 
            desired_job_list = select_jobs(
595
 
                self._context.state.job_list, [unit.get_qualifier()])
596
 
            self._context.state.update_desired_job_list(desired_job_list)
597
 
            self._metadata.flags = {'incomplete'}
598
 
            """
599
592
        self._manager.checkpoint()
600
593
        UsageExpectation.of(self).allowed_calls = {
601
594
            self.bootstrap: "to run the bootstrap process"
731
724
            [plan.get_qualifier() for plan in self._manager.test_plans])
732
725
        self._context.state.update_desired_job_list(desired_job_list)
733
726
 
734
 
 
735
727
    @raises(KeyError, UnexpectedMethodCall)
736
728
    def get_job_state(self, job_id: str) -> 'JobState':
737
729
        """
1240
1232
            self.get_category: "to access the definition of ant category",
1241
1233
            self.get_participating_categories: (
1242
1234
                "to access participating categories"),
1243
 
            self.filter_jobs_by_categories: ("to select the jobs that match"
1244
 
                "particular category"),
 
1235
            self.filter_jobs_by_categories: (
 
1236
                "to select the jobs that match particular category"),
1245
1237
            self.remove_all_filters: "to remove all filters",
1246
1238
            self.get_static_todo_list: "to see what is meant to be executed",
1247
1239
            self.get_dynamic_todo_list: "to see what is yet to be executed",
1253
1245
            self.export_to_transport: "to export the results and send them",
1254
1246
            self.export_to_file: "to export the results to a file",
1255
1247
            self.finalize_session: "to mark the session as complete",
 
1248
            self.get_session_id: "to get the id of currently running session",
 
1249
            self.get_session_dir: ("to get the path where current session is"
 
1250
                                   "stored"),
1256
1251
        }
1257
1252
 
1258
1253