Skip to content

Commit 616ea76

Browse files
committed
test: Remove assertions that capture raises
These tests were broken anyways. Capture would only raise because it was being called with no arguments, not because api_key or host are None.
1 parent b452a9f commit 616ea76

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

posthog/test/test_module.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ def setUp(self):
1818
"testsecret", host="http://localhost:8000", on_error=self.failed
1919
)
2020

21-
def test_no_api_key(self):
22-
self.posthog.api_key = None
23-
self.assertRaises(Exception, self.posthog.capture)
24-
25-
def test_no_host(self):
26-
self.posthog.host = None
27-
self.assertRaises(Exception, self.posthog.capture)
28-
2921
def test_track(self):
3022
res = self.posthog.capture("python module event", distinct_id="distinct_id")
3123
self._assert_enqueue_result(res)

0 commit comments

Comments
 (0)