def METHOD_NAME(
    mocker,
    forward_enable_settings,
    forwarder_mocked_migrator,
    forwarder_mocked_requests,
):
    # Given
    project_id = 1
    request_data = {
        "identity": {"identifier": "test_user_123"},
        "trait_key": "key",
        "trait_value": "value",
    }
    api_key = "test_api_key"
    headers = {"X-Environment-Key": api_key}
    mocked_migration_done = mocker.MagicMock(return_value=True)
    type(
        forwarder_mocked_migrator.return_value
    ).is_migration_done = mocked_migration_done
    # When
    forward_trait_request_sync("POST", headers, project_id, payload=request_data)
    # Then
    args, kwargs = forwarder_mocked_requests.post.call_args
    assert args[0] == forward_enable_settings.EDGE_API_URL + "traits/"
    assert kwargs["data"] == json.dumps(request_data)
    assert kwargs["headers"]["X-Environment-Key"] == api_key
    assert kwargs["headers"][FLAGSMITH_SIGNATURE_HEADER]
    forwarder_mocked_migrator.assert_called_with(project_id)