Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Remove Mimic dependency (#2280)
Uku Taht12a513f3cdcf
diff --git a/mix.exs b/mix.exsindex b56e726482..4f3e90bc95 100644--- a/mix.exs+++ b/mix.exs@@ -87,7 +87,6 @@ defmodule Plausible.MixProject do{:jason, "~> 1.3"},{:kaffy, "~> 0.9.0"},{:location, git: "https://github.com/plausible/location.git"},- {:mimic, "~> 1.7", only: :test},{:mox, "~> 1.0", only: :test},{:nanoid, "~> 2.0.2"},{:oauther, "~> 1.3"},diff --git a/mix.lock b/mix.lockindex c8fd7411e9..77f454ba2c 100644--- a/mix.lock+++ b/mix.lock@@ -73,7 +73,6 @@"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"},"mime": {:hex, :mime, "1.6.0", "dabde576a497cef4bbdd60aceee8160e02a6c89250d6c0b29e56c0dfb00db3d2", [:mix], [], "hexpm", "31a1a8613f8321143dde1dafc36006a17d28d02bdfecb9e95a880fa7aabd19a7"},"mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"},- "mimic": {:hex, :mimic, "1.7.2", "27007e4e0c746ddb6d56a386c40585088b35621ae2d7167160e8c3283e8cd585", [:mix], [], "hexpm", "e4d40550523841055aa469f5125d124ab89ce8b2d3686cab908b98dff5e6111b"},"mint": {:hex, :mint, "1.4.2", "50330223429a6e1260b2ca5415f69b0ab086141bc76dc2fbf34d7c389a6675b2", [:mix], [{:castore, "~> 0.1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "ce75a5bbcc59b4d7d8d70f8b2fc284b1751ffb35c7b6a6302b5192f8ab4ddd80"},"mmdb2_decoder": {:hex, :mmdb2_decoder, "3.0.1", "78e3aedde88035c6873ada5ceaf41b7f15a6259ed034e0eaca72ccfa937798f0", [:mix], [], "hexpm", "316af0f388fac824782d944f54efe78e7c9691bbbdb0afd5cccdd0510adf559d"},"mox": {:hex, :mox, "1.0.2", "dc2057289ac478b35760ba74165b4b3f402f68803dd5aecd3bfd19c183815d64", [:mix], [], "hexpm", "f9864921b3aaf763c8741b5b8e6f908f44566f1e427b2630e89e9a73b981fef2"},diff --git a/test/plausible_web/controllers/api/external_controller_test.exs b/test/plausible_web/controllers/api/external_controller_test.exsindex 0f9487757f..a9f427fa5b 100644--- a/test/plausible_web/controllers/api/external_controller_test.exs+++ b/test/plausible_web/controllers/api/external_controller_test.exs@@ -1,6 +1,5 @@defmodule PlausibleWeb.Api.ExternalControllerTest douse PlausibleWeb.ConnCase- use Mimicuse Plausible.ClickhouseRepodefp get_event(domain) do@@ -269,11 +268,7 @@ defmodule PlausibleWeb.Api.ExternalControllerTest dotest "feature flag - blocks traffic from a domain when block_traffic is enabled", %{conn: conn} do- FunWithFlags- |> stub(:enabled?, fn- :block_event_ingest, [for: "feature-flag-test.com"] -> true- _, _ -> false- end)+ FunWithFlags.enable(:block_event_ingest, for_actor: "feature-flag-test.com")params = %{domain: "feature-flag-test.com",diff --git a/test/test_helper.exs b/test/test_helper.exsindex 3fb7b96fe5..0987bdbea1 100644--- a/test/test_helper.exs+++ b/test/test_helper.exs@@ -1,6 +1,5 @@{:ok, _} = Application.ensure_all_started(:ex_machina)Plausible.Test.ClickhouseSetup.run()-Mimic.copy(FunWithFlags)Mox.defmock(Plausible.HTTPClient.Mock, for: Plausible.HTTPClient.Interface)ExUnit.start()Application.ensure_all_started(:double)