       end
     end
 
-    test "get_performance!/3 preloads all associated data of the performance" do
+    test "preloads all associated data of the performance" do
       %{
         id: id,
         contest_category: %{contest: c},

  alias Jumubase.Showtime
  alias Jumubase.Showtime.{Appearance, Participant, Performance, Piece}

  describe "performances" do
    test "list_performances/1 returns the given contest's performances" do
      contest = insert(:contest)

      # Performances in this contest

      assert acc2.age_group == "V"
    end

    test "sets no age group when the data is invalid" do
      {cc, attrs} = performance_params([])
      {:error, changeset} = Showtime.create_performance(cc.contest, attrs)

      assert Changeset.get_change(changeset, :age_group) == nil
    end

    test "returns an error when passing no contest category id" do
      contest = insert(:contest)
      assert {:error, _changeset} = Showtime.create_performance(contest, %{contest_category_id: nil})
    end

    test "raises an error when the passed contest and attributes don't match" do
      {_, attrs} = performance_params([
        appearance_params("soloist", ~D[2007-01-01])
      ])
      other_contest = insert(:contest)
      assert_raise Ecto.NoResultsError, fn -> Showtime.create_performance(other_contest, attrs) end
    end
  end

  test "change_performance/1 returns a performance changeset" do
    performance = insert(:performance)
    assert %Changeset{} = Showtime.change_performance(performance)
  end

  # Private helpers
