     }) |> Repo.insert
 
     File.update(file, %{}) # Should create file transfer records
-    
+
     host_id = get_host_id(host)
     query = get_file_transfers_for_file_query(file_id)
     assert_data(query, %{


  defp get_host_id(host) do
    Absinthe.Relay.Node.to_global_id(:host, host.id, EdmBackend.GraphQL.Schema)
  end

  test "creating a file with existing source by source info", context do


    query = new_file_info |> update_file_query(get_file_id(context[:existing_file]))

    assert_errors(query, [%{locations: [%{column: 0, line: 2}],
      message: "In field \"updateFile\": Not logged in"}])

    # Confirm that the updated file contains the updated parameters
    assert_data(query, %{"updateFile" => %{
      "clientMutationId" => "123",
