| Conditions | 1 | 
| Total Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from typing import List | ||
| 9 | def test_calculate(self): | ||
| 10 | stage = Mock() | ||
| 11 | tested_object = VelocityCalculator() | ||
| 12 |         current_velocities = {stage: [0.5, 0.5]} | ||
| 13 |         particle_best_positions = {stage: [0.5, 0.5]} | ||
| 14 |         leader_best_positions = {stage: [0.5, 0.5]} | ||
| 15 |         control_params = {stage: [0.5, 0.5]} | ||
| 16 | result = tested_object.calculate(current_velocities, | ||
| 17 | particle_best_positions, | ||
| 18 | leader_best_positions, | ||
| 19 | control_params) | ||
| 20 | self.assertIsInstance(result[stage], List) | ||
| 21 | self.assertEquals(len(result), 1) | ||
| 22 | 
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.