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