         statuses: %{"iniN" => []},
         files: %{"trying" => %{".travis.yml" => "", "appveyor.yml" => ""}}
       }})
-    patch = new_patch(proj, 1)
+    patch = new_patch(proj, 1, "N")
     Attemptor.handle_cast({:tried, patch.id, "test"}, proj.id)
     statuses = Repo.all(AttemptStatus)
     assert Enum.any?(statuses,

        statuses: %{"iniN" => []},
        files: %{"trying" => %{".travis.yml" => ""}}
      }})
    patch = new_patch(proj, 1)
    Attemptor.handle_cast({:tried, patch.id, "test"}, proj.id)
    [status] = Repo.all(AttemptStatus)
    assert status.identifier == "continuous-integration/travis-ci/push"

    {:ok, inst: inst, proj: proj}
  end

  def new_patch(proj, pr_xref, commit) do
    %Patch{
      project_id: proj.id,
      pr_xref: pr_xref,
