Add an else condition to correct StubbedMock
behavior
#2124
linting.yml
on: pull_request
Yamllint
16s
Mdformat
31s