Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Move GA fixtures to fixtures/ folder (#2398)

Vinicius Brasil90c78e8995a9
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 212d8f8314..67ed6ecaca 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)