def test_process(self): """ Test that the report has two sections when we add a process: one for the process itself, and one for meta metrics. """ project = domain.Project() project.add_process( domain.Process(short_name='FP', requirements=[requirement.TrackActions])) self.assertEqual(2, len(report.QualityReport(project).sections()))
def test_get_process(self): """ Test that a process can be retrieved by name. """ process = domain.Process(name="Scrum") self.__project.add_process(process) self.assertEqual(process, self.__project.get_process(process.name()))
def test_add_process(self): """ Test that a process can be added to the project .""" process = domain.Process(name="Scrum") self.__project.add_process(process) self.assertEqual([process], self.__project.processes())
def __create_process(process_kwargs): # pylint: disable=unused-argument """ Create a process according to the provided arguments. """ return domain.Process(**process_kwargs)
def test_short_name_can_be_overridden(self): """ Test that the process short name can be overridden. """ self.assertEqual("ZZ", domain.Process(short_name="ZZ").short_name())
def test_default_short_name(self): """ Test that the process has a default short name. """ self.assertEqual("PP", domain.Process().short_name())
def test_name_can_be_overridden(self): """ Test that the process name can be overridden. """ self.assertEqual("Development process", domain.Process(name="Development process").name())