for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Module for testing grouped optimizer."""
from unittest import TestCase
from unittest.mock import Mock
from grortir.main.model.core.abstract_process import AbstractProcess
grortir.main.model.core.abstract_process
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
from grortir.main.model.core.abstract_stage import AbstractStage
grortir.main.model.core.abstract_stage
class TestGroupedOptimizer(TestCase):
"""Class for testing Optimizer."""
def setUp(self):
"""Set up environment."""
self.some_process = AbstractProcess()
self.first_stage = AbstractStage()
self.second_stage = AbstractStage()
self.third_stage_a = Mock()
self.third_stage_b = Mock()
self.some_process.add_path([self.first_stage, self.second_stage,
self.third_stage_a])
self.some_process.add_edge(self.second_stage, self.third_stage_b)
def test___init__(self):
"""Testing creating object."""
optimizer = GroupedOptimizer(self.some_process)
self.assertIsNotNone(optimizer)
self.assertEqual(optimizer.process, self.some_process)
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.