@@ -61,7 +61,7 @@ def test_nested_contexts(self):
6161 # Back to level 1
6262 self .assertEqual (get_tags (), {"level1" : "value1" })
6363
64- @patch (' posthog.capture_exception' )
64+ @patch (" posthog.capture_exception" )
6565 def test_tracked_decorator_success (self , mock_capture ):
6666 @tracked
6767 def successful_function (x , y ):
@@ -80,7 +80,7 @@ def successful_function(x, y):
8080 # Context should be cleared after function execution
8181 self .assertEqual (get_tags (), {})
8282
83- @patch (' posthog.capture_exception' )
83+ @patch (" posthog.capture_exception" )
8484 def test_tracked_decorator_exception (self , mock_capture ):
8585 test_exception = ValueError ("Test exception" )
8686
@@ -101,7 +101,7 @@ def failing_function():
101101 self .assertEqual (args [0 ], test_exception )
102102
103103 # Check that the context was included in properties
104- self .assertEqual (kwargs .get (' properties' , {}).get (' important_context' ), "value" )
104+ self .assertEqual (kwargs .get (" properties" , {}).get (" important_context" ), "value" )
105105
106106 # Context should be cleared after function execution
107107 self .assertEqual (get_tags (), {})
0 commit comments