You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: artist_controller_test.rb
    path of file: ./repos/moebooru/test/controllers
    
    the code of the file until where you have to start completion: require "test_helper"

class ArtistControllerTest < ActionController::TestCase
  fixtures :users

  def create_artist(name, params = {})
    Artist.create({ updater_id: 1, updater_ip_addr: "127.0.0.1", name: name }.merge(params))
  end

  def test_destroy
    artist = create_artist("bob")

    post :destroy, params: { id: artist.id, commit: "Yes" }, session: { user_id: 1 }
    assert_redirected_to action: "index"
    assert_nil(Artist.find_by_name("bob"))
  end

  def test_update
    artist = create_artist("bob")

    get :update, params: { id: artist.id }, session: { user_id: 4 }
    assert_response :success

    post :update, params: { id: artist.id, artist: { name: "monet", urls: "http://monet.com/home\nhttp://monet.com/links\n", alias
    
  def test_create
    get :create, session: { user_id: 4 }
    assert_response :success

    post :create, params: { artist: { name: "monet", urls: "http://monet.com/home\nhttp://monet.com/links\n", alias_names: "claude, oscar", member_names: "john, mary", notes: "Claude Oscar Monet" } }, session: { user_id: 4 }

    monet = Artist.find_by_name("monet")
    assert_not_nil(monet)
    assert_redirected_to controller: "artist", action: "show", id: monet.id

    claude = Artist.find_by_name("claude")
    assert_not_nil(claude)
    assert_equal(monet.id, claude.alias_id)

    oscar = Artist.find_by_name("oscar")
    assert_not_nil(oscar)

    john = Artist.find_by_name("john")
    assert_not_nil(john)
    assert_equal(monet.id, john.group_id)

    mary = Artist.find_by_name("mary")
    assert_not_nil(mary)
    assert_equal([ "http://monet.com/home", "http://monet.com/links" ], monet.artist_urls.map(&:url).sort)
  end