def METHOD_NAME(self, workflow, caplog, scratch, target):  # noqa
    mock_environment(workflow, koji_build_id='98765', scratch=scratch)
    runner = create_runner(workflow, use_args=False, koji_target=target)
    runner.run()
    if scratch:
        log_msg = 'scratch build, skipping plugin'
    elif not target:
        log_msg = 'no koji target provided, skipping plugin'
    assert log_msg in caplog.text