@@ -18,14 +18,14 @@ class TestThreadPoolConfiguration:
1818
1919 def test_default_pool_size (self ):
2020 """Test that default pool size is 4 when no env var is set."""
21- from src . contextforge_memory .main import ThreadPoolConfig
21+ from contextforge_memory .main import ThreadPoolConfig
2222
2323 config = ThreadPoolConfig ()
2424 assert config .pool_size == 4
2525
2626 def test_explicit_pool_size (self ):
2727 """Test that explicit pool sizes are accepted."""
28- from src . contextforge_memory .main import ThreadPoolConfig
28+ from contextforge_memory .main import ThreadPoolConfig
2929
3030 test_cases = [1 , 4 , 8 , 16 , 32 ]
3131
@@ -35,7 +35,7 @@ def test_explicit_pool_size(self):
3535
3636 def test_from_env_with_valid_values (self ):
3737 """Test that from_env() works with valid environment values."""
38- from src . contextforge_memory .main import ThreadPoolConfig
38+ from contextforge_memory .main import ThreadPoolConfig
3939
4040 test_cases = [1 , 4 , 8 , 16 , 32 ]
4141
@@ -46,7 +46,7 @@ def test_from_env_with_valid_values(self):
4646
4747 def test_from_env_with_invalid_values (self ):
4848 """Test that from_env() handles invalid environment values gracefully."""
49- from src . contextforge_memory .main import ThreadPoolConfig
49+ from contextforge_memory .main import ThreadPoolConfig
5050
5151 invalid_values = ["invalid" , "-1" , "0" , "not_a_number" ]
5252
@@ -58,15 +58,15 @@ def test_from_env_with_invalid_values(self):
5858
5959 def test_from_env_with_missing_var (self ):
6060 """Test that from_env() uses default when env var is missing."""
61- from src . contextforge_memory .main import ThreadPoolConfig
61+ from contextforge_memory .main import ThreadPoolConfig
6262
6363 with patch .dict (os .environ , {}, clear = True ):
6464 config = ThreadPoolConfig .from_env ()
6565 assert config .pool_size == 4
6666
6767 def test_pool_creation (self ):
6868 """Test that create_pool() returns a working ThreadPoolExecutor."""
69- from src . contextforge_memory .main import ThreadPoolConfig
69+ from contextforge_memory .main import ThreadPoolConfig
7070
7171 config = ThreadPoolConfig (pool_size = 2 )
7272 pool = config .create_pool ()
@@ -86,7 +86,7 @@ def simple_task(x):
8686
8787 def test_pool_with_concurrent_tasks (self ):
8888 """Test that the pool can handle concurrent tasks efficiently."""
89- from src . contextforge_memory .main import ThreadPoolConfig
89+ from contextforge_memory .main import ThreadPoolConfig
9090
9191 config = ThreadPoolConfig (pool_size = 3 )
9292 pool = config .create_pool ()
@@ -150,7 +150,7 @@ def test_pool_with_real_app_integration(self):
150150
151151 def test_environment_parsing_edge_cases (self ):
152152 """Test edge cases in environment variable parsing."""
153- from src . contextforge_memory .main import ThreadPoolConfig
153+ from contextforge_memory .main import ThreadPoolConfig
154154
155155 # Test with very large numbers
156156 with patch .dict (os .environ , {"CONTEXTFORGE_IO_POOL_SIZE" : "1000" }):
0 commit comments