Fix `tests.test_cli` failing because of outdated mocks

7 jobs for feat-randomforest in 5 minutes and 46 seconds
Status Name Job ID Coverage
  Test
passed test:python3.7 #41529

00:04:46

66.0%
passed test:python3.8 #41530

00:04:33

66.0%
 
  Pages
passed docs #41531

00:00:29

 
  Lint
failed lint:mypy #41533
allowed to fail

00:00:23

passed lint:pydocstyle #41532

00:00:21

failed lint:pylint #41534
allowed to fail

00:00:30

passed lint:radon #41535

00:00:22

 
Name Stage Failure
failed
lint:pylint Lint
import random
import typing (duplicate-code)

-----------------------------------
Your code has been rated at 4.99/10

Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
lint:mypy Lint
gecco/cli/commands/train.py:191: error: No overload variant of "write" of "BinaryIO" matches argument type "str"
gecco/cli/commands/train.py:191: note: Possible overload variants:
gecco/cli/commands/train.py:191: note: def write(self, s: bytearray) -> int
gecco/cli/commands/train.py:191: note: def write(self, s: bytes) -> int
gecco/cli/commands/train.py:235: error: unused 'type: ignore' comment
Found 5 errors in 3 files (checked 24 source files)
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1