@@ -1329,7 +1329,6 @@ def level_1_function(*args, **kwargs):
13291329@pytest .mark .asyncio
13301330async def test_multiproject_async_context_propagation_basic ():
13311331 """Test that nested async decorated functions inherit langfuse_public_key from parent in multi-project setup"""
1332- LangfuseResourceManager ._instances .pop ("fake" , None )
13331332 client1 = Langfuse () # Reads from environment
13341333 Langfuse (public_key = "pk-test-project2" , secret_key = "sk-test-project2" )
13351334
@@ -1399,7 +1398,6 @@ async def async_level_1_function(*args, **kwargs):
13991398@pytest .mark .asyncio
14001399async def test_multiproject_mixed_sync_async_context_propagation ():
14011400 """Test context propagation between sync and async decorated functions in multi-project setup"""
1402- LangfuseResourceManager ._instances .pop ("fake" , None )
14031401 client1 = Langfuse () # Reads from environment
14041402 Langfuse (public_key = "pk-test-project2" , secret_key = "sk-test-project2" )
14051403
@@ -1471,7 +1469,6 @@ async def async_level_1_function(*args, **kwargs):
14711469@pytest .mark .asyncio
14721470async def test_multiproject_concurrent_async_context_isolation ():
14731471 """Test that concurrent async executions don't interfere with each other's context in multi-project setup"""
1474- LangfuseResourceManager ._instances .pop ("fake" , None )
14751472 client1 = Langfuse () # Reads from environment
14761473 Langfuse (public_key = "pk-test-project2" , secret_key = "sk-test-project2" )
14771474
@@ -1562,7 +1559,6 @@ async def async_level_1_function(task_id, *args, **kwargs):
15621559@pytest .mark .asyncio
15631560async def test_multiproject_async_generator_context_propagation ():
15641561 """Test context propagation with async generators in multi-project setup"""
1565- LangfuseResourceManager ._instances .pop ("fake" , None )
15661562 client1 = Langfuse () # Reads from environment
15671563 Langfuse (public_key = "pk-test-project2" , secret_key = "sk-test-project2" )
15681564
@@ -1627,7 +1623,6 @@ async def async_consumer_function():
16271623@pytest .mark .asyncio
16281624async def test_multiproject_async_context_exception_handling ():
16291625 """Test that async context is properly restored even when exceptions occur in multi-project setup"""
1630- LangfuseResourceManager ._instances .pop ("fake" , None )
16311626 client1 = Langfuse () # Reads from environment
16321627 Langfuse (public_key = "pk-test-project2" , secret_key = "sk-test-project2" )
16331628
0 commit comments