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.HTTP.TzdataTest do
10 @url "https://data.iana.org/time-zones/tzdata-latest.tar.gz"
14 %{method: :head, url: @url} ->
15 %Tesla.Env{status: 200, body: ""}
17 %{method: :get, url: @url} ->
18 %Tesla.Env{status: 200, body: "hello"}
25 test "returns successfully result" do
26 assert HTTP.Tzdata.head(@url, [], []) == {:ok, {200, []}}
31 test "returns successfully result" do
32 assert HTTP.Tzdata.get(@url, [], []) == {:ok, {200, [], "hello"}}