Skip to content

Commit

Permalink
Update csv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macobo committed Nov 12, 2024
1 parent 05fa72e commit f98a666
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name,conversions,conversion_rate
Direct,1,50.0
Direct,1,33.3
3 changes: 1 addition & 2 deletions test/plausible_web/controllers/CSVs/30d/channels.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name,visitors,bounce_rate,visit_duration
Direct,2,50,30
Direct,3,67,20
Organic Search,1,0,60
Paid Search,1,100,0
4 changes: 2 additions & 2 deletions test/plausible_web/controllers/CSVs/6m/channels.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name,visitors,bounce_rate,visit_duration
Direct,2,50,30
Paid Search,2,100,0
Direct,3,67,20
Organic Search,1,0,60
Paid Search,1,100,0
9 changes: 3 additions & 6 deletions test/plausible_web/controllers/stats_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,7 @@ defmodule PlausibleWeb.StatsControllerTest do
country_code: "EE",
subdivision1_code: "EE-37",
city_geoname_id: 588_409,
referrer_source: "Google",
channel: "Organic Search"
referrer_source: "Google"
),
build(:pageview,
user_id: 123,
Expand All @@ -705,8 +704,7 @@ defmodule PlausibleWeb.StatsControllerTest do
country_code: "EE",
subdivision1_code: "EE-37",
city_geoname_id: 588_409,
referrer_source: "Google",
channel: "Organic Search"
referrer_source: "Google"
),
build(:pageview,
pathname: "/",
Expand All @@ -717,7 +715,6 @@ defmodule PlausibleWeb.StatsControllerTest do
utm_source: "google",
utm_content: "content",
utm_term: "term",
channel: "Paid Search",
browser: "Firefox",
browser_version: "120",
operating_system: "Mac",
Expand All @@ -738,7 +735,7 @@ defmodule PlausibleWeb.StatsControllerTest do
utm_campaign: "ads",
country_code: "EE",
referrer_source: "Google",
channel: "Paid Search",
click_id_param: "gclid",
browser: "FirefoxNoVersion",
operating_system: "MacNoVersion"
),
Expand Down

0 comments on commit f98a666

Please sign in to comment.