From 90c78e8995a9afa16aba7ec9917eb044e21df846 Mon Sep 17 00:00:00 2001 From: Vinicius Brasil Date: Sat, 29 Oct 2022 04:44:10 -0300 Subject: [PATCH] Move GA fixtures to fixtures/ folder (#2398) This commit fixes up 29347126db871429d9e5c37c63c4f79. --- .../ga_report_imported_browsers.json | 0 .../ga_report_imported_devices.json | 0 .../ga_report_imported_entry_pages.json | 0 .../ga_report_imported_exit_pages.json | 0 .../ga_report_imported_locations.json | 0 .../ga_report_imported_operating_systems.json | 0 .../ga_report_imported_pages.json | 0 .../ga_report_imported_sources.json | 0 .../ga_report_imported_visitors.json | 0 test/plausible/google/api_test.exs | 18 +++++++++--------- 10 files changed, 9 insertions(+), 9 deletions(-) rename ga_report_imported_browsers.json => fixture/ga_report_imported_browsers.json (100%) rename ga_report_imported_devices.json => fixture/ga_report_imported_devices.json (100%) rename ga_report_imported_entry_pages.json => fixture/ga_report_imported_entry_pages.json (100%) rename ga_report_imported_exit_pages.json => fixture/ga_report_imported_exit_pages.json (100%) rename ga_report_imported_locations.json => fixture/ga_report_imported_locations.json (100%) rename ga_report_imported_operating_systems.json => fixture/ga_report_imported_operating_systems.json (100%) rename ga_report_imported_pages.json => fixture/ga_report_imported_pages.json (100%) rename ga_report_imported_sources.json => fixture/ga_report_imported_sources.json (100%) rename ga_report_imported_visitors.json => fixture/ga_report_imported_visitors.json (100%) diff --git a/ga_report_imported_browsers.json b/fixture/ga_report_imported_browsers.json similarity index 100% rename from ga_report_imported_browsers.json rename to fixture/ga_report_imported_browsers.json diff --git a/ga_report_imported_devices.json b/fixture/ga_report_imported_devices.json similarity index 100% rename from ga_report_imported_devices.json rename to fixture/ga_report_imported_devices.json diff --git a/ga_report_imported_entry_pages.json b/fixture/ga_report_imported_entry_pages.json similarity index 100% rename from ga_report_imported_entry_pages.json rename to fixture/ga_report_imported_entry_pages.json diff --git a/ga_report_imported_exit_pages.json b/fixture/ga_report_imported_exit_pages.json similarity index 100% rename from ga_report_imported_exit_pages.json rename to fixture/ga_report_imported_exit_pages.json diff --git a/ga_report_imported_locations.json b/fixture/ga_report_imported_locations.json similarity index 100% rename from ga_report_imported_locations.json rename to fixture/ga_report_imported_locations.json diff --git a/ga_report_imported_operating_systems.json b/fixture/ga_report_imported_operating_systems.json similarity index 100% rename from ga_report_imported_operating_systems.json rename to fixture/ga_report_imported_operating_systems.json diff --git a/ga_report_imported_pages.json b/fixture/ga_report_imported_pages.json similarity index 100% rename from ga_report_imported_pages.json rename to fixture/ga_report_imported_pages.json diff --git a/ga_report_imported_sources.json b/fixture/ga_report_imported_sources.json similarity index 100% rename from ga_report_imported_sources.json rename to fixture/ga_report_imported_sources.json diff --git a/ga_report_imported_visitors.json b/fixture/ga_report_imported_visitors.json similarity index 100% rename from ga_report_imported_visitors.json rename to fixture/ga_report_imported_visitors.json diff --git a/test/plausible/google/api_test.exs b/test/plausible/google/api_test.exs index 212d8f831..67ed6ecac 100644 --- a/test/plausible/google/api_test.exs +++ b/test/plausible/google/api_test.exs @@ -12,15 +12,15 @@ defmodule Plausible.Google.ApiTest do @refresh_token_body Jason.decode!(File.read!("fixture/ga_refresh_token.json")) @full_report_mock [ - "ga_report_imported_visitors.json", - "ga_report_imported_sources.json", - "ga_report_imported_pages.json", - "ga_report_imported_entry_pages.json", - "ga_report_imported_exit_pages.json", - "ga_report_imported_locations.json", - "ga_report_imported_devices.json", - "ga_report_imported_browsers.json", - "ga_report_imported_operating_systems.json" + "fixture/ga_report_imported_visitors.json", + "fixture/ga_report_imported_sources.json", + "fixture/ga_report_imported_pages.json", + "fixture/ga_report_imported_entry_pages.json", + "fixture/ga_report_imported_exit_pages.json", + "fixture/ga_report_imported_locations.json", + "fixture/ga_report_imported_devices.json", + "fixture/ga_report_imported_browsers.json", + "fixture/ga_report_imported_operating_systems.json" ] |> Enum.map(&File.read!/1) |> Enum.map(&Jason.decode!/1)