1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.PleromaAPI.BackupViewTest do
6 use Pleroma.DataCase, async: true
7 alias Pleroma.User.Backup
8 alias Pleroma.Web.PleromaAPI.BackupView
11 test "it renders the ID" do
13 backup = Backup.new(user)
15 result = BackupView.render("show.json", backup: backup)
16 assert result.id == backup.id