def METHOD_NAME(self, mock_logger):
    _helpers.positional_parameters_enforcement = _helpers.POSITIONAL_IGNORE
    @_helpers.positional(1)
    def function(pos, kwonly=None):
        return True
    self.assertTrue(function(1, 2))
    self.assertFalse(mock_logger.warning.called)