Skip to content

Commit

Permalink
test?
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Oct 14, 2024
1 parent 429302d commit 57d25e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def test_metrics_without_full_flag_information_are_valid(self):
result_data = response_data["result"]

self.assertEqual(len(result_data["result"].items()), 2)
self.assertAlmostEqual(result_data["result"]["control"], 0)
self.assertAlmostEqual(result_data["result"]["control"], 1)
self.assertEqual(result_data["result"]["test"], 0)

assert set(response_data["result"].keys()) == {
Expand Down Expand Up @@ -1307,4 +1307,4 @@ def test_no_metric_validation_errors_for_secondary_metrics(self):

assert "control" not in result_data["result"]

self.assertEqual(result_data["result"]["test"], 0)
self.assertEqual(result_data["result"]["test"], 0.333)
2 changes: 1 addition & 1 deletion ee/clickhouse/views/test/test_clickhouse_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ def test_experiment_flow_with_event_results_for_three_test_variants(self):
result = sorted(response_data["insight"], key=lambda x: x[0]["breakdown_value"][0])

self.assertEqual(result[0][0]["name"], "$pageview")
self.assertEqual(result[0][0]["count"], 1)
self.assertEqual(result[0][0]["count"], 2)
self.assertEqual("control", result[0][0]["breakdown_value"][0])

self.assertEqual(result[0][1]["name"], "$pageleave")
Expand Down

0 comments on commit 57d25e9

Please sign in to comment.