repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
vndee/llm-sandbox
train
21
11428bad5fbfc6d8df6d8f1a2c67ce32c72549e2
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
53
8
assert
test_create_docker_session
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
mock_instance
modified
abc879501608c58ecb93538285e53ed59a07420dcdb7f4efd5ff4515a981c9f6
assert|test_create_docker_session|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileTyp...
mock_instance
53
8
vndee/llm-sandbox
train
21
11428bad5fbfc6d8df6d8f1a2c67ce32c72549e2
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
92
8
assert
test_create_micromamba_session
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
mock_instance
modified
a25853ca54b3baf4e8f0b94ccbc43e1317ae1eb62bd71b261632a1c9f2c62f67
assert|test_create_micromamba_session|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, Fil...
mock_instance
92
8
vndee/llm-sandbox
train
21
11428bad5fbfc6d8df6d8f1a2c67ce32c72549e2
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
243
8
assert
test_check_security_policy_no_policy
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
True
added
5082a718233a7e5c73b3d03879e3a2df1c8eda1b2347cba40c6dad027fb6a427
assert|test_check_security_policy_no_policy|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandb...
null
null
null
vndee/llm-sandbox
train
21
11428bad5fbfc6d8df6d8f1a2c67ce32c72549e2
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
291
8
assert
test_is_safe_wrapper
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
True
added
ce6d95fa30abb89f94000c1c1498b260cf66801b42b22ff52f60e347ab1e6d95
assert|test_is_safe_wrapper|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config i...
null
null
null
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_base_handler.py
test
vndee/llm-sandbox:tests/test_base_handler.py
54
13
pytest.raises
test_empty_execution_commands_line_78
# ruff: noqa: SLF001, PLR2004 """Tests for llm_sandbox.language_handlers.base module - missing coverage.""" import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageMa...
CommandFailedError)
added
a9dedc90dbb616f973215f509510d16f7296592a929c4b520d54f7d90eeeb045
pytest.raises|test_empty_execution_commands_line_78|# ruff: noqa: SLF001, PLR2004 """Tests for llm_sandbox.language_handlers.base module - missing coverage.""" import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox...
null
null
null
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_base_handler.py
test
vndee/llm-sandbox:tests/test_base_handler.py
256
8
assert
test_extract_single_plot_value_error_handling
# ruff: noqa: SLF001, PLR2004 """Tests for llm_sandbox.language_handlers.base module - missing coverage.""" import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageMa...
None
added
09b659398a46819fb950f2718587b3d495e9134d93079aa1dd1320ad44674316
assert|test_extract_single_plot_value_error_handling|# ruff: noqa: SLF001, PLR2004 """Tests for llm_sandbox.language_handlers.base module - missing coverage.""" import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbo...
null
null
null
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_const.py
train
vndee/llm-sandbox:tests/test_const.py
226
8
assert
test_language_image_mapping
# ruff: noqa: PLR2004 """Tests for llm_sandbox.const module.""" import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestStrEnum: """Test StrEnum functionality.""" def test_str_enum_creation(self) -> None: """Test basic StrEnum creation.""" ...
DefaultImage.JAVASCRIPT
modified
3eacd4db02529090e402f781db1fd3450e551ec879ba7a94883a62c9cb1ce2dd
assert|test_language_image_mapping|# ruff: noqa: PLR2004 """Tests for llm_sandbox.const module.""" import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestStrEnum: """Test StrEnum functionality.""" def test_str_enum_creation(self) -> None: """Test basic StrEnum cre...
DefaultImage.JAVASCRIPT
225
8
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_language_handlers.py
val
vndee/llm-sandbox:tests/test_language_handlers.py
69
8
assert
test_is_support_plot_detection_true
"""Tests for language handlers.""" import logging import pytest from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.factory import LanguageHandlerFactory from llm_sandbox.language_handlers.python_handler import PythonHandler class TestLanguageHandlerFactory: """Test ...
True
added
03099b593b0e037d41eae92729de26515a9bc99afe1d3a5aae1b92f604f7fae4
assert|test_is_support_plot_detection_true|"""Tests for language handlers.""" import logging import pytest from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.factory import LanguageHandlerFactory from llm_sandbox.language_handlers.python_handler import PythonHandler class Te...
null
null
null
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_language_handlers.py
val
vndee/llm-sandbox:tests/test_language_handlers.py
80
8
assert
test_filter_comments_removes_multiline
"""Tests for language handlers.""" import logging import pytest from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.factory import LanguageHandlerFactory from llm_sandbox.language_handlers.python_handler import PythonHandler class TestLanguageHandlerFactory: """Test ...
filtered
added
ced17e81fd0f5d91f3f5d9671bdb7575c18191131f8a33f7c4ee897bc865a53e
assert|test_filter_comments_removes_multiline|"""Tests for language handlers.""" import logging import pytest from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.factory import LanguageHandlerFactory from llm_sandbox.language_handlers.python_handler import PythonHandler class...
null
null
null
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_python_handler.py
train
vndee/llm-sandbox:tests/test_python_handler.py
236
12
assert
test_get_import_patterns
# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError from ...
re.search(pattern, code)
modified
9880f17276db9a81a680f86c662ed5c40fabae6162b91b1453b81599d3c69ff0
assert|test_get_import_patterns|# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions import Lang...
re.search(pattern, code)
236
12
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_python_handler.py
train
vndee/llm-sandbox:tests/test_python_handler.py
260
12
assert
test_get_multiline_comment_patterns
# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError from ...
re.search(pattern, comment)
modified
cbab1f1dc184f4d35cec545c9d3fda107e3bca8e4cca012e11e7b1257c4e0531
assert|test_get_multiline_comment_patterns|# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions ...
re.search(pattern, comment)
260
12
vndee/llm-sandbox
train
22
5b3a9003baec58db5ff5b3abf83d80c1e87ec876
train
tests/test_r_handler.py
train
vndee/llm-sandbox:tests/test_r_handler.py
283
8
assert
test_get_library_installation_command
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handlers.base import PlotLibrary from llm_sandb...
"R -e \"install.packages('ggplot2', repos='https://cran.rstudio.com/')\""
added
e85da51b8012be1e530acd269321ffb9d64c98cce86fbc293cacf1d1661c978b
assert|test_get_library_installation_command|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handl...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_go_handler.py
train
vndee/llm-sandbox:tests/test_go_handler.py
120
12
assert
test_get_import_patterns_module_paths
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.go_handler import GoHandler class TestGoHandler: """Test GoHandler specific functionality.""" def test_init(self) -> None: ""...
re.search(pattern, code)
added
a734d496ca61a18b67e299297ec956fb6430fc268590f43a42780fbf49d865ea
assert|test_get_import_patterns_module_paths|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.go_handler import GoHandler class TestGoHandler: """Test GoHandler specific functionality.""" def tes...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_java_handler.py
train
vndee/llm-sandbox:tests/test_java_handler.py
89
8
assert
test_get_import_patterns
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.java_handler import JavaHandler class TestJavaHandler: """Test JavaHandler specific functionality.""" def test_init(self) -> None: ...
re.search(list_pattern, "import java.util.List;")
added
8d2c0c34977fb59fba11cd4af97b7f633676dd25544b72ce59b80889951a2c58
assert|test_get_import_patterns|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.java_handler import JavaHandler class TestJavaHandler: """Test JavaHandler specific functionality.""" def test_ini...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_javascript_handler.py
test
vndee/llm-sandbox:tests/test_javascript_handler.py
193
8
assert
test_get_execution_commands
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.javascript_handler import JavaScriptHandler class TestJavaScriptHandler: """Test JavaScriptHandler specific functionality.""" def tes...
"node app.js"
added
db6e329138513570e8b3de1b0c330c61fc079e47556f501084a725f41876c961
assert|test_get_execution_commands|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.javascript_handler import JavaScriptHandler class TestJavaScriptHandler: """Test JavaScriptHandler specific fun...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
53
8
assert_*
test_get_backend_default_docker
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
SandboxBackend.DOCKER)
added
45b5acde7964123ca929e19fef876ac80ad27ac9f17965526564231a7627e88d
assert_*|test_get_backend_default_docker|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import E...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_python_handler.py
train
vndee/llm-sandbox:tests/test_python_handler.py
283
12
assert
test_get_inline_comment_patterns
# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError from ...
re.search(pattern, comment)
added
ac277b684944ca01edd73d6f498d8f3138f8ee2644b22daaa6baf31d7e702092
assert|test_get_inline_comment_patterns|# ruff: noqa: SLF001, PLR2004 import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions imp...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_r_handler.py
train
vndee/llm-sandbox:tests/test_r_handler.py
222
16
assert
test_get_import_patterns_no_false_positives
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handlers.base import PlotLibrary from llm_sandb...
not re.search(pattern, filtered_code)
added
03f665f85f146284470eac76f55a0a10ad17a9c7f3c91dc4b9176bcc0e699e9f
assert|test_get_import_patterns_no_false_positives|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_ruby_handler.py
train
vndee/llm-sandbox:tests/test_ruby_handler.py
216
12
assert
test_standard_library_requires
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.ruby_handler import RubyHandler class TestRubyHandler: """Test RubyHandler specific functionality.""" def test_init(self) -> None: ...
re.search(pattern, require_stmt)
added
7d946163770cb83e236f74bbfb56370b93b11a67c39de2655520af5f59770a8e
assert|test_standard_library_requires|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.ruby_handler import RubyHandler class TestRubyHandler: """Test RubyHandler specific functionality.""" def te...
null
null
null
vndee/llm-sandbox
train
23
2c0219c713b04e13fa0bec6113b3b2f9d0ddcc87
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
276
13
pytest.raises
test_run_with_plotting_enabled_unsupported_language
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
LanguageNotSupportPlotError)
modified
cff53991626363a34a8b70c7a06eb7f350c45fc11db57a787dab2c63d0aae4bd
pytest.raises|test_run_with_plotting_enabled_unsupported_language|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data...
LanguageNotSupportPlotError)
274
13
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_advanced_security_scenarios.py
train
vndee/llm-sandbox:tests/test_advanced_security_scenarios.py
513
8
assert
test_malicious_file_writing
# ruff: noqa: PLR2004 """Advanced security scenario tests converted from examples. This module contains comprehensive security tests that simulate real-world attack patterns and edge cases to thoroughly validate the security system. """ from dataclasses import dataclass from typing import Any import pytest from llm...
False
modified
ae836ce22414257b2dfaae82e2286c8a6fe1f176106bcb985fff62b644088a28
assert|test_malicious_file_writing|# ruff: noqa: PLR2004 """Advanced security scenario tests converted from examples. This module contains comprehensive security tests that simulate real-world attack patterns and edge cases to thoroughly validate the security system. """ from dataclasses import dataclass from typing im...
False
510
8
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_advanced_security_scenarios.py
train
vndee/llm-sandbox:tests/test_advanced_security_scenarios.py
797
8
assert
test_function_pointer_indirection
# ruff: noqa: PLR2004 """Advanced security scenario tests converted from examples. This module contains comprehensive security tests that simulate real-world attack patterns and edge cases to thoroughly validate the security system. """ from dataclasses import dataclass from typing import Any import pytest from llm...
False
modified
bf7db7deed5b4f248057dac47752e2deb5ce33a852900b7f01d5d497769d797b
assert|test_function_pointer_indirection|# ruff: noqa: PLR2004 """Advanced security scenario tests converted from examples. This module contains comprehensive security tests that simulate real-world attack patterns and edge cases to thoroughly validate the security system. """ from dataclasses import dataclass from typ...
False
794
8
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_custom_image_libraries.py
test
vndee/llm-sandbox:tests/test_custom_image_libraries.py
78
8
assert
test_custom_image_with_preinstalled_libraries
"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtual environment isolation. Other languages (Go, R, Jav...
not any( "pip install pandas" in call[0][0] for call in mock_exec.call_args_list )
added
82fc44c0194afdfe91381d7786b8cc62d84e7316a1cd4a309694a4a15d711792
assert|test_custom_image_with_preinstalled_libraries|"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtual...
null
null
null
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_custom_image_libraries.py
test
vndee/llm-sandbox:tests/test_custom_image_libraries.py
151
8
assert
test_venv_command_includes_system_site_packages
"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtual environment isolation. Other languages (Go, R, Jav...
PYTHON_CREATE_VENV_COMMAND
added
a6bb4637b2a085e035b2f6d3c6aa69145ee99134b437b4199c476981c8021ab4
assert|test_venv_command_includes_system_site_packages|"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtu...
null
null
null
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_custom_image_libraries.py
test
vndee/llm-sandbox:tests/test_custom_image_libraries.py
153
8
assert
test_venv_command_includes_system_site_packages
"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtual environment isolation. Other languages (Go, R, Jav...
PYTHON_CREATE_VENV_COMMAND
added
897c8d414d9efa26f5b87e1009a7431ea9196f937bd5f6d708646a50c8152615
assert|test_venv_command_includes_system_site_packages|"""Tests for custom Docker image libraries support (Issue #79). This module tests that Python libraries pre-installed in custom Docker images are accessible without needing to specify them in the libraries parameter. Note: This issue is Python-specific due to virtu...
null
null
null
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_security_scanner.py
train
vndee/llm-sandbox:tests/test_security_scanner.py
111
8
assert
test_safe_math_operations
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest from llm_sandbox import SandboxSessi...
True
modified
caa04551b6b28cdb1dbed04351c8a45b9b4cc6516fd8c3c1ec6a899017cdd6d3
assert|test_safe_math_operations|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest from l...
True
108
8
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_security_scanner.py
train
vndee/llm-sandbox:tests/test_security_scanner.py
438
8
assert
test_high_level_blocks_only_high
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest from llm_sandbox import SandboxSessi...
True
modified
f7649a2f01c3bdefec065573a07f278ae1626439adceee604e6f8466fff4616a
assert|test_high_level_blocks_only_high|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest...
True
435
8
vndee/llm-sandbox
train
24
f4e3f8aad1717c8aee665c1b274c7ccc48a63262
train
tests/test_security_scanner.py
train
vndee/llm-sandbox:tests/test_security_scanner.py
497
8
assert
test_safe_library_usage_requests
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest from llm_sandbox import SandboxSessi...
True
modified
fe4e93c8c2c425eb2dd3272ff47d7a467dc46902340b4c151652533c1b5a6a1f
assert|test_safe_library_usage_requests|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Unit tests for security features with mocked execution. This module tests security policies and their integration with the code execution pipeline, using mocked Docker backend to avoid actual code execution. """ import pytest...
True
494
8
vndee/llm-sandbox
train
25
feb4ae5ff5764abd1140c1f744709cffa4367c35
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
506
8
assert_*
test_run_success
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
"print('hello')")
modified
97456abe80abbcae3f4477c2ce9d6c4efbbc064b6a9a68ae220a02dea416e755
assert_*|test_run_success|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config imp...
b"print('hello')")
506
8
vndee/llm-sandbox
train
25
feb4ae5ff5764abd1140c1f744709cffa4367c35
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
522
12
assert
test_run_with_timeout
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
0.0001
modified
1ad4617f9c88abba27b3d6fff6094407995a9cd5f8441859437508b3d6412a77
assert|test_run_with_timeout|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config ...
0.0001
522
12
vndee/llm-sandbox
train
25
feb4ae5ff5764abd1140c1f744709cffa4367c35
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
599
12
assert
test_close_sets_state
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
False
modified
17d1b0321c0ce0835f98520de1fadbb8a1964901735425fb0893d81581d7527f
assert|test_close_sets_state|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config ...
False
599
12
vndee/llm-sandbox
train
25
feb4ae5ff5764abd1140c1f744709cffa4367c35
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
630
13
pytest.raises
test_restricted_library_installation
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
SecurityViolationError, match="Library restricted_lib is not allowed")
modified
1dd0f12e1ca32447e83957a8625dc502e41f4b40e924dd1c79389580cf5c8122
pytest.raises|test_restricted_library_installation|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from ll...
SecurityViolationError, match="Library restricted_lib is not allowed")
630
13
vndee/llm-sandbox
train
26
2a95560787de256b5cc2b3ca6a5fb5475893d92e
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
558
8
assert
test_execute_command_success_with_stream
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
"stderr chunk 1stderr chunk 2"
modified
85a2a8fb3be3c4f21ec71af34dc9064e5ad57de3a75cc871c45c125f29211fcb
assert|test_execute_command_success_with_stream|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFoun...
"stderr chunk 1stderr chunk 2"
556
8
vndee/llm-sandbox
train
26
2a95560787de256b5cc2b3ca6a5fb5475893d92e
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
739
8
assert
test_init
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
True
modified
b71b4a162bd34060de09e2a3d70c2681937a061204c193c7b86546a4117e78d3
assert|test_init|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core ...
True
737
8
vndee/llm-sandbox
train
26
2a95560787de256b5cc2b3ca6a5fb5475893d92e
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
896
8
assert
test_init_with_deprecated_mounts_parameter_single_mount
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
session.config.runtime_configs
added
892269087a0340d30d50c125b60d034dc538dff9f19a8916450aade676f6a2c1
assert|test_init_with_deprecated_mounts_parameter_single_mount|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors impo...
null
null
null
vndee/llm-sandbox
train
26
2a95560787de256b5cc2b3ca6a5fb5475893d92e
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
1,193
8
assert
test_close_container_cleanup_exception
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
None
added
ab7007504e15d2f43bf5f76091231aeabab8859eaf80e0b874aabd831ae4f57c
assert|test_close_container_cleanup_exception|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound,...
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_kubernetes.py
train
vndee/llm-sandbox:tests/test_kubernetes.py
533
8
assert
test_execute_command_with_workdir
# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLa...
" ".join(executed_command)
added
31aa9c7712e0dc6d561940a07305d53c2bbd531c68b37c061e529bce291b314d
assert|test_execute_command_with_workdir|# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.c...
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_kubernetes.py
train
vndee/llm-sandbox:tests/test_kubernetes.py
1,504
12
pytest.raises
test_copy_from_runtime_inherited_validation
# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLa...
FileNotFoundError, match="not found in container")
added
0a917722da0fa0b629878d4a9879105d31008189c29f3d1ce81a788d99103b91
pytest.raises|test_copy_from_runtime_inherited_validation|# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException f...
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_kubernetes.py
train
vndee/llm-sandbox:tests/test_kubernetes.py
1,681
8
assert
test_pod_manifest_with_complex_configuration
# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLa...
"custom:latest"
modified
49eebb70f995b4c1b98c09a0f7164d725d196fa41dba3f123aa09534cc96e867
assert|test_pod_manifest_with_complex_configuration|# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from ll...
complex_env_vars
1,678
8
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_kubernetes.py
train
vndee/llm-sandbox:tests/test_kubernetes.py
1,855
8
assert
test_container_name_extraction_multiple_containers
# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLa...
"first-container"
added
b404707ff80f58e96568a012af50f7f9ce1309c389bf0fe7ea07e5269b077824
assert|test_container_name_extraction_multiple_containers|# ruff: noqa: SLF001, PLR2004, ARG002, PT011, PT012 """Tests for Kubernetes backend implementation.""" import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException f...
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
492
8
assert
test_skip_environment_setup_false
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
min_expected_calls
added
c77cb39ba8d7344b61872740558366166931938731afdbc64ccae019fc512bf8
assert|test_skip_environment_setup_false|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox....
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
609
13
pytest.raises
test_run_session_not_open
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
NotOpenSessionError)
added
717c8edc6b955f5c194afebb64ddbe2f7d7c270a0e073d630ebcdea1882c039b
pytest.raises|test_run_session_not_open|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.c...
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
616
13
pytest.raises
test_run_no_container
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
NotOpenSessionError)
added
424770e816ede39515589ecf47e50d98c0c2f46c33fb3090a353e2c399cf135f
pytest.raises|test_run_no_container|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core....
null
null
null
vndee/llm-sandbox
train
27
ee9dbe665dd9613609790c22109fe620a3567830
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
642
8
assert
test_run_success
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
isinstance(result, ConsoleOutput)
added
d75b85fb95cf7c66a7dc937dd227b45c71be39f8868efbdf1bb01d5e88557f5e
assert|test_run_success|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config impor...
null
null
null
vndee/llm-sandbox
train
28
b2bb491d4c59048927ceb6e0a0353d254f3032ee
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
55
8
assert_*
test_get_backend_default_docker
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
SandboxBackend.DOCKER)
modified
23bb775efa9e9aa74e14feb243fd2f74f5c897c22fd4c7bf74c2cec031246fd8
assert_*|test_get_backend_default_docker|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import E...
SandboxBackend.DOCKER)
53
8
vndee/llm-sandbox
train
28
b2bb491d4c59048927ceb6e0a0353d254f3032ee
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
64
8
assert_*
test_get_backend_podman_from_env
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
SandboxBackend.PODMAN)
modified
025d6ffe0c4fc9778675147caa3079abf48f4a4b7391f52287eb33ae23cf3a4a
assert_*|test_get_backend_podman_from_env|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ...
SandboxBackend.PODMAN)
62
8
vndee/llm-sandbox
train
28
b2bb491d4c59048927ceb6e0a0353d254f3032ee
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
204
8
assert
test_supports_visualization_java
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
False
added
762a4bb6f0470000b849783151f9b6c88e718f18687a33a01c619ebb5e012c1f
assert|test_supports_visualization_java|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import Ex...
null
null
null
vndee/llm-sandbox
train
28
b2bb491d4c59048927ceb6e0a0353d254f3032ee
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
435
8
assert
test_execute_code_error_handling
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
isinstance(result[0], TextContent)
added
530a02839cbbe268e5f7ab4f8f3b3c219a45c49ca419211589e500986bfff2e4
assert|test_execute_code_error_handling|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import Ex...
null
null
null
vndee/llm-sandbox
train
29
e797eb3905650a624944183278a144d29ef0d802
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
87
8
assert
test_get_commit_container_no
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
False
modified
5c37ff96c752d840bef30c1de908974e770495f5df136433239bad2385ff57a6
assert|test_get_commit_container_no|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import Execut...
False
86
8
vndee/llm-sandbox
train
29
e797eb3905650a624944183278a144d29ef0d802
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
181
8
assert
test_get_keep_template_default
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
True
modified
e9e563f400d41464d5b30b3902b82c8158b10b0afd9d7e65a34aa48f5def37b1
assert|test_get_keep_template_default|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import Exec...
True
180
8
vndee/llm-sandbox
train
29
e797eb3905650a624944183278a144d29ef0d802
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
238
8
assert
test_supports_visualization_unknown_language
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
False
added
168d5665f0d916d7bdc07425ad99e435602815cfbc4cbf54abca96cf52f5dec4
assert|test_supports_visualization_unknown_language|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.da...
null
null
null
vndee/llm-sandbox
train
29
e797eb3905650a624944183278a144d29ef0d802
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
681
13
pytest.raises
test_backend_dependency_check_integration
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
MissingDependencyError)
added
44b0b8a26869eb56bce8766dda999f49a7b32807879134756553fd0df9b99336
pytest.raises|test_backend_dependency_check_integration|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbo...
null
null
null
vndee/llm-sandbox
train
30
1ea50fb7c9bbd3b229c43042f34050c9b18e4467
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
282
13
pytest.raises
test_run_with_plotting_enabled_unsupported_language
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
LanguageNotSupportPlotError)
added
2ba2136ed966b6ff0f40771f81ef2952d544cacaec893220a8824a2f23d9f068
pytest.raises|test_run_with_plotting_enabled_unsupported_language|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data...
null
null
null
vndee/llm-sandbox
train
30
1ea50fb7c9bbd3b229c43042f34050c9b18e4467
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
302
8
assert
test_run_with_custom_timeout
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
isinstance(result, ExecutionResult)
added
6782504db224ef84fc2775fd469de12f3dd7cab41122e9187c813b72ae655cb8
assert|test_run_with_custom_timeout|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileT...
null
null
null
vndee/llm-sandbox
train
30
1ea50fb7c9bbd3b229c43042f34050c9b18e4467
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
325
13
pytest.raises
test_container_id_with_dockerfile
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
ValueError, match="Cannot use 'dockerfile' with existing 'container_id'")
added
95b4604b744fad6f12accce1b4af8969678d6a1516962b242db1eb922c0efab0
pytest.raises|test_container_id_with_dockerfile|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionR...
null
null
null
vndee/llm-sandbox
train
30
1ea50fb7c9bbd3b229c43042f34050c9b18e4467
train
tests/test_session.py
train
vndee/llm-sandbox:tests/test_session.py
338
8
assert
test_valid_config_combinations
# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox...
None
added
0243b1d0219a0d05e4ce8a66f3e88e785a997d56d2eb92f05f35c017b2e856a3
assert|test_valid_config_combinations|# ruff: noqa: SLF001, PLR2004 """Tests for session module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, Fil...
null
null
null
vndee/llm-sandbox
train
31
b63d65e37ce5dfee23b3915946d8ffa8297b6712
train
tests/test_plot_clearing.py
train
vndee/llm-sandbox:tests/test_plot_clearing.py
163
12
assert
test_manual_clear_plots
# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleO...
plots_cleared[0]
added
7224a1819177b131722117c751cf36e6fb7fcf2c20bc7fa614a5454c91bd840b
assert|test_manual_clear_plots|# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_s...
null
null
null
vndee/llm-sandbox
train
31
b63d65e37ce5dfee23b3915946d8ffa8297b6712
train
tests/test_plot_clearing.py
train
vndee/llm-sandbox:tests/test_plot_clearing.py
299
12
assert
test_cross_backend_compatibility
# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleO...
clear_cmd
added
9d9f8696ff84ee167171dc702fcda2d1b47137cefc4efe5301376b854a264fec
assert|test_cross_backend_compatibility|# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend f...
null
null
null
vndee/llm-sandbox
train
31
b63d65e37ce5dfee23b3915946d8ffa8297b6712
train
tests/test_plot_clearing.py
train
vndee/llm-sandbox:tests/test_plot_clearing.py
345
8
assert
test_shell_command_compatibility
# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleO...
clear_cmd
added
1502464262e3afedaaffca290c5894408cd4c240152a57e72726ff0ba745bbf5
assert|test_shell_command_compatibility|# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend f...
null
null
null
vndee/llm-sandbox
train
31
b63d65e37ce5dfee23b3915946d8ffa8297b6712
train
tests/test_plot_clearing.py
train
vndee/llm-sandbox:tests/test_plot_clearing.py
365
12
pytest.raises
test_language_not_support_plot_error
# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleO...
LanguageNotSupportPlotError)
added
df5941210479f908cf4d6011e9432cb89baa259a8baa5f05db82c853c27877d4
pytest.raises|test_language_not_support_plot_error|# ruff: noqa: SLF001, PLR2004, ARG001, ARG002, PT011, ANN001, ANN003, ANN202 """Tests for plot clearing functionality.""" import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, Sandb...
null
null
null
vndee/llm-sandbox
train
32
0a9ea818c894fe2aa424c267bfadc60922426e2f
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
61
9
pytest.raises
test_interactive_session_requires_python_language
"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import Sessi...
LanguageNotSupportedError)
added
7d5a54fbb1be15afcaa2077406c839adc3217e128e2351ef7454be47e78e0222
pytest.raises|test_interactive_session_requires_python_language|"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const im...
null
null
null
vndee/llm-sandbox
train
32
0a9ea818c894fe2aa424c267bfadc60922426e2f
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
140
9
pytest.raises
test_run_times_out_when_result_missing
"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import Sessi...
SandboxTimeoutError)
added
8ad0b408d6b41cbdb0630d04bbd14cb170f09d29ec1137ce6708ede3fa72c099
pytest.raises|test_run_times_out_when_result_missing|"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import Sandbo...
null
null
null
vndee/llm-sandbox
train
32
0a9ea818c894fe2aa424c267bfadc60922426e2f
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
212
9
pytest.raises
test_run_requires_ready_runner
"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import Sessi...
ContainerError)
added
1c4483439f4a6ae4b9eb738c727169dfac874e7027ab6e689ea20815fd4779a8
pytest.raises|test_run_requires_ready_runner|"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend...
null
null
null
vndee/llm-sandbox
train
32
0a9ea818c894fe2aa424c267bfadc60922426e2f
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
307
8
assert
test_interactive_session_state_with_docker
"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import Sessi...
whoami.stdout
added
20bf459b30de0fc62361c70b195ac3c594239539f549f3793c7eee8dfe09552d
assert|test_interactive_session_state_with_docker|"""Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBa...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
101
8
assert
test_create_backend_session_filters_runtime_configs_for_kubernetes
# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox...
mock_k8s_session
added
207da9ec75351ddd17d9abed4886977c2305f45ca1a822226986c031e50dd66e
assert|test_create_backend_session_filters_runtime_configs_for_kubernetes|# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast fr...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
361
8
assert
test_interactive_session_state_with_docker
# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox...
magic.stdout
added
a256d7f3304feac9e22469fb84b3ae26f2782b5dbef7d6e5406e81e91a262638
assert|test_interactive_session_state_with_docker|# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import ...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
466
4
assert
test_close_stops_runner
# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox...
session._backend_session.execute_command.called
added
9b19c33ef488d5a942cf24adc7d362262ba1f4feeb0092df06ecddcf6e1923f5
assert|test_close_stops_runner|# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch im...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_interactive_session.py
train
vndee/llm-sandbox:tests/test_interactive_session.py
700
9
pytest.raises
test_delegation_methods_with_backend_none
# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox...
AttributeError)
added
12a6a265c4353472bd16801879e35a9965a59796b6c380d5c3b853ca9e8c28e4
pytest.raises|test_delegation_methods_with_backend_none|# ruff: noqa: SLF001 # mypy: disable-error-code="method-assign" """Tests for the InteractiveSandboxSession.""" import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock i...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_podman.py
train
vndee/llm-sandbox:tests/test_podman.py
125
8
assert
test_init_with_dockerfile_only
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import Supporte...
None
added
b85f0fe1551348a4e82051daadd8ec78265f004c457106e5c95c83ba4dfe665d
assert|test_init_with_dockerfile_only|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_podman.py
train
vndee/llm-sandbox:tests/test_podman.py
340
8
assert
test_normalize_runtime_configs_for_podman_returns_copy
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import Supporte...
"3072m"
added
ed9b685b8d0582b36e2915521230d1eb1f6360e7c6814b46d56ba6cbf2a8f95c
assert|test_normalize_runtime_configs_for_podman_returns_copy|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core imp...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_podman.py
train
vndee/llm-sandbox:tests/test_podman.py
398
8
assert_*
test_get_or_pull_image_pulls_when_missing
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import Supporte...
"repo:tag")
added
800ff0eb8acc9e57b4ad618d1111df55fa6dea7b324718d4da3eaf3ab5bcd6b9
assert_*|test_get_or_pull_image_pulls_when_missing|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import Validat...
null
null
null
vndee/llm-sandbox
train
33
6523bddfa2c5ed432d2731acb0627c481526c539
train
tests/test_podman.py
train
vndee/llm-sandbox:tests/test_podman.py
460
13
pytest.raises
test_connect_to_existing_container_wraps_generic_errors
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import Supporte...
ContainerError, match="Failed to connect to container abc123")
added
b15475732558a243e1f324e92e396fea993f7488435a5524b362b2d894e423af
pytest.raises|test_connect_to_existing_container_wraps_generic_errors|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Podman backend implementation.""" from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_backend.py
train
vndee/llm-sandbox:tests/test_backend.py
502
8
assert
test_sandbox_session_alias_works
# ruff: noqa: SLF001, PLR2004, ARG002, FBT003 """Integration tests for all sandbox backends.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import MissingDependencyError, UnsupportedBackendError from llm_sandbox...
mock_session_instance
modified
ccfce641fb5768279477eb629eec16eb5e889a0bb00a998511a1f1acf4c9ea2d
assert|test_sandbox_session_alias_works|# ruff: noqa: SLF001, PLR2004, ARG002, FBT003 """Integration tests for all sandbox backends.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import MissingDependencyError, Unsu...
mock_session_instance
501
8
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_k8s_utils.py
train
vndee/llm-sandbox:tests/test_k8s_utils.py
47
8
assert
test_fail_after_max_retries
"""Tests for Kubernetes utility functions.""" from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: """Test retry_k8s_api_call function.""" def test_successful_call(self...
ws_error
added
b34fbd2b58e9cc666deb12cef215ea5ab1f41844aec5196947f4fb3bbcf5819c
assert|test_fail_after_max_retries|"""Tests for Kubernetes utility functions.""" from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: """Test retry_k8s_api_call function.""" def test...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_mcp_server.py
train
vndee/llm-sandbox:tests/test_mcp_server.py
698
12
assert
test_visualization_language_consistency
"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput f...
supports_viz
modified
560300a6a826c3cb57a9c4381b370510603e7410e0e03c8e323c83aec9672308
assert|test_visualization_language_consistency|"""Tests for MCP server module.""" import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data im...
supports_viz
698
12
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_pool_config.py
train
vndee/llm-sandbox:tests/test_pool_config.py
15
8
assert
test_enum_values
"""Tests for pool configuration module.""" import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestExhaustionStrategy: """Test ExhaustionStrategy enum.""" def test_enum_values(self) -> None: """Test all enum values are availabl...
"wait"
added
6a6de7edc4829d9280a85aa654871340ded2c61d9f7f2f8f3464cd6069d0f537
assert|test_enum_values|"""Tests for pool configuration module.""" import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestExhaustionStrategy: """Test ExhaustionStrategy enum.""" def test_enum_values(self) -> None: """Test all enum values are avail...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_pool_docker.py
train
vndee/llm-sandbox:tests/test_pool_docker.py
60
8
assert
test_init_with_dockerfile
"""Tests for Docker pool manager.""" from unittest.mock import MagicMock, patch from docker.errors import NotFound from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.docker_pool import DockerPoolManager class TestDockerPoolManagerInitialization: ...
"/path/to/Dockerfile"
added
59c9a77a115fc2cedab2cad6877a1453a9e4a64b2a43f104da52b74d7fc8e3da
assert|test_init_with_dockerfile|"""Tests for Docker pool manager.""" from unittest.mock import MagicMock, patch from docker.errors import NotFound from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.docker_pool import DockerPoolManager class TestDockerPo...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_pool_factory.py
train
vndee/llm-sandbox:tests/test_pool_factory.py
188
8
assert
test_none_config_uses_defaults
"""Tests for pool factory module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import UnsupportedBackendError from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.factory import create_pool_mana...
"wait"
added
154cfb682fa2f59acf34d86d1a2acad1602afc583b190baa4d6ca1a0bc5e5ead
assert|test_none_config_uses_defaults|"""Tests for pool factory module.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import UnsupportedBackendError from llm_sandbox.pool.config import PoolConfig from llm_sandbox.p...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_pool_podman.py
train
vndee/llm-sandbox:tests/test_pool_podman.py
60
8
assert
test_init_with_runtime_configs
"""Tests for Podman pool manager.""" from unittest.mock import MagicMock, patch from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.podman_pool import PodmanPoolManager class TestPodmanPoolManagerInitialization: """Test PodmanPoolManager initializ...
runtime_configs
added
fbe7702933bb8c04fcc8bd33957bc0bc21c096f7b88394072658e775c1ae948c
assert|test_init_with_runtime_configs|"""Tests for Podman pool manager.""" from unittest.mock import MagicMock, patch from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.podman_pool import PodmanPoolManager class TestPodmanPoolManagerInitialization: """Te...
null
null
null
vndee/llm-sandbox
train
34
5211e3ba6030887189cb9ed46d17839a41c74cee
train
tests/test_pool_session.py
train
vndee/llm-sandbox:tests/test_pool_session.py
131
12
assert
test_close_releases_container
"""Comprehensive tests for PooledSandboxSession and artifact session.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.exceptions ...
None
added
41d24921a8b7f1e2da27dad37b057974c868a221d9d44c4ef2cd58657f2bb9d8
assert|test_close_releases_container|"""Comprehensive tests for PooledSandboxSession and artifact session.""" from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.pool.config import PoolConfig...
null
null
null
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_cpp_handler.py
train
vndee/llm-sandbox:tests/test_cpp_handler.py
205
8
assert
test_get_library_installation_command
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functionality.""" def test_init(self) -> None: ...
"apt-get install libboost-dev"
modified
316c6ff85abdd3dfba7d1f1b8ec03989e757b16a1659febddfdac8f19befc296
assert|test_get_library_installation_command|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functionality.""" def...
"apt-get install libboost-dev"
204
8
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_cpp_handler.py
train
vndee/llm-sandbox:tests/test_cpp_handler.py
227
12
assert
test_standard_library_headers
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functionality.""" def test_init(self) -> None: ...
re.search(pattern, include_stmt)
modified
12e04ef279ed0f86e84bb5467a3f37ae97ff24bd3c1f0966fcb8dcdc004ef1cf
assert|test_standard_library_headers|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functionality.""" def test_in...
re.search(pattern, include_stmt)
226
12
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_cpp_handler.py
train
vndee/llm-sandbox:tests/test_cpp_handler.py
288
12
assert
test_preprocessor_directives_not_matched_as_includes
# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functionality.""" def test_init(self) -> None: ...
not re.search(pattern, directive)
modified
5a4bb5483eb25bc7286c3f9a08d14f6d23417005ba762ea5b7a27630c8f6cafa
assert|test_preprocessor_directives_not_matched_as_includes|# ruff: noqa: SLF001, PLR2004 import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: """Test CppHandler specific functi...
not re.search(pattern, directive)
287
12
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_dynamic_paths.py
test
vndee/llm-sandbox:tests/test_dynamic_paths.py
62
8
assert
test_library_installation_with_context_default_workdir
"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandler from llm_sandbox.language_handlers.python_handler import ...
"/sandbox/.sandbox-venv/bin/pip install numpy --cache-dir /sandbox/.sandbox-pip-cache"
added
5d13b1c03d3e9295615e38a0fb0ef84646ba859b5003e0a46a93a91ecafdcae1
assert|test_library_installation_with_context_default_workdir|"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandl...
null
null
null
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_dynamic_paths.py
test
vndee/llm-sandbox:tests/test_dynamic_paths.py
171
8
assert
test_cpp_handler_none_context
"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandler from llm_sandbox.language_handlers.python_handler import ...
"g++ -std=c++17 -o /tmp/a.out main.cpp"
added
55813f21cddb17698275183eac93c9b7769ffb824c949a16abf3423512b74261
assert|test_cpp_handler_none_context|"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandler from llm_sandbox.langu...
null
null
null
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_dynamic_paths.py
test
vndee/llm-sandbox:tests/test_dynamic_paths.py
215
8
assert
test_python_writable_workspace
"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandler from llm_sandbox.language_handlers.python_handler import ...
commands[0]
added
0f8913a3b86a2bf06e286719c9f5e4275fb7cb871f27d329c93a9bef80b38c78
assert|test_python_writable_workspace|"""Test dynamic path resolution for language handlers. This module tests the new session-aware path resolution feature using RuntimeContext - fixes issue #121 (read-only file system support). """ from llm_sandbox.language_handlers.cpp_handler import CppHandler from llm_sandbox.lang...
null
null
null
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
154
8
assert_*
test_log_verbose_enabled
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
"test message")
modified
a7cc67968e1ab71214ee9fe647b3c92efcfc339a9540d00b2cd2ffd247fb62fe
assert_*|test_log_verbose_enabled|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.co...
"test message")
153
8
vndee/llm-sandbox
train
35
d111849b5e286605e30b4ae8ac2f3c8ce14fafa0
train
tests/test_session_base.py
train
vndee/llm-sandbox:tests/test_session_base.py
472
12
assert
test_environment_setup_installs_initial_libraries
# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.core.config import SessionConfig from ...
["numpy", "pandas"]
modified
12494ffb07f5743ff3cda854f5684918bd95f5e96b8b86688aa901a36693e170
assert|test_environment_setup_installs_initial_libraries|# ruff: noqa: E501, SLF001, ARG002, PLR2004, FBT003 """Test cases for the new architecture BaseSession.""" import logging from typing import Any from unittest.mock import MagicMock, Mock, call, patch import pytest from llm_sandbox.const import SupportedLanguage f...
["numpy", "pandas"]
471
12
vndee/llm-sandbox
train
36
4eca42b64d7861ad8ce3b85282f334ce108c23af
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
361
12
assert_*
test_run_success
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
["numpy"])
added
815f98ecdb02f95b43f0f31d153663544780683aafe3f1511cacf72b498e84d1
assert_*|test_run_success|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydan...
null
null
null
vndee/llm-sandbox
train
36
4eca42b64d7861ad8ce3b85282f334ce108c23af
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
374
13
pytest.raises
test_run_without_open_session
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
NotOpenSessionError)
added
5d60900dd0b35ba925cbd719c26d2ccfbad2c023d70ff063be70d092c43d3950
pytest.raises|test_run_without_open_session|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, N...
null
null
null
vndee/llm-sandbox
train
36
4eca42b64d7861ad8ce3b85282f334ce108c23af
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
527
13
pytest.raises
test_copy_from_runtime_file_not_found
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
FileNotFoundError)
added
a54742a2832bea2544451d5b5a2d1ca247620962bfae9349e18639012f8324e5
pytest.raises|test_copy_from_runtime_file_not_found|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNot...
null
null
null
vndee/llm-sandbox
train
36
4eca42b64d7861ad8ce3b85282f334ce108c23af
train
tests/test_docker.py
val
vndee/llm-sandbox:tests/test_docker.py
602
13
pytest.raises
test_execute_command_empty_command
# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import Validat...
CommandEmptyError)
added
8ca3d19f5f394cd5b0872a1cb4d3bfbeae7f12c6b6d524c0bbdcdb31205f7b0c
pytest.raises|test_execute_command_empty_command|# ruff: noqa: SLF001, PLR2004, ARG002, PT011 """Tests for Docker backend implementation.""" import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFou...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
template/{{cookiecutter.project_slug}}/backend/tests/test_pipelines.py
test
vstorm-co/full-stack-ai-agent-template:template/{{cookiecutter.project_slug}}/backend/tests/test_pipelines.py
83
13
pytest.raises
test_run_must_be_implemented
"""Tests for pipeline infrastructure.""" import pytest from app.pipelines.base import BasePipeline, PipelineResult class TestPipelineResult: """Tests for PipelineResult dataclass.""" def test_success_rate_all_processed(self): """Test success rate when all items processed.""" result = Pipeli...
TypeError, match="Can't instantiate abstract class")
added
459317d9f057c3141d907a1f8d953e30346e89407e1896fe9a84897790680bc9
pytest.raises|test_run_must_be_implemented|"""Tests for pipeline infrastructure.""" import pytest from app.pipelines.base import BasePipeline, PipelineResult class TestPipelineResult: """Tests for PipelineResult dataclass.""" def test_success_rate_all_processed(self): """Test success rate when all items processed.""" r...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_cli.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_cli.py
267
8
assert
test_create_minimal
"""Tests for fastapi_gen.cli module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from click.testing import CliRunner from fastapi_gen.cli import cli, create, main, new, templates from fastapi_gen.config import AuthType, CIType, DatabaseType, FrontendType, ProjectConfig @pyt...
CIType.NONE
added
c79464cee6fcc761693026f9a1f8c98e211cab5ddb8c4787184a24c4214fe446
assert|test_create_minimal|"""Tests for fastapi_gen.cli module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from click.testing import CliRunner from fastapi_gen.cli import cli, create, main, new, templates from fastapi_gen.config import AuthType, CIType, DatabaseType, FrontendTy...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_config.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_config.py
108
17
pytest.raises
test_invalid_project_names
"""Tests for fastapi_gen.config module.""" import pytest from pydantic import ValidationError from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, LogfireFeatures, ProjectConfig, ) class TestEnums: """Tests for configuration enums.""" def test_databas...
ValidationError)
added
c7ef90494b14309b0628814c684992849c12a4c1e5c41757a1b95aab53e02d94
pytest.raises|test_invalid_project_names|"""Tests for fastapi_gen.config module.""" import pytest from pydantic import ValidationError from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, LogfireFeatures, ProjectConfig, ) class TestEnums: """Tests for configuration enums.""" def test_dat...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_config.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_config.py
308
8
assert
test_taskiq_background_task_flags
"""Tests for fastapi_gen.config module.""" import pytest from pydantic import ValidationError from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, LogfireFeatures, ProjectConfig, ) class TestEnums: """Tests for configuration enums.""" def test_databas...
False
added
5225de47ac7987105a42648ce0c22f3f02992a9b31668f3a837269f2a3b9893c
assert|test_taskiq_background_task_flags|"""Tests for fastapi_gen.config module.""" import pytest from pydantic import ValidationError from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, LogfireFeatures, ProjectConfig, ) class TestEnums: """Tests for configuration enums.""" def test_dat...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_generator.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_generator.py
26
8
assert
test_finds_dev_template
"""Tests for fastapi_gen.generator module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig from fastapi_gen.generator import ( TEMPLATE_DIR, _find_template_dir, generate_project, get_template...
(path / "cookiecutter.json").exists()
added
ca5b33b7d7920a3ea5c30b3e6359be0c48088656f429ab77db7e48d44bd32f5e
assert|test_finds_dev_template|"""Tests for fastapi_gen.generator module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig from fastapi_gen.generator import ( TEMPLATE_DIR, _find_template_dir, generate_project, ...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_generator.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_generator.py
51
12
pytest.raises
test_raises_when_no_template_found
"""Tests for fastapi_gen.generator module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig from fastapi_gen.generator import ( TEMPLATE_DIR, _find_template_dir, generate_project, get_template...
FileNotFoundError, match="Could not find cookiecutter")
added
5d4850934ad4f75a9cf21b5e1023ffef3d8263f046e70186f08507988304c579
pytest.raises|test_raises_when_no_template_found|"""Tests for fastapi_gen.generator module.""" from pathlib import Path from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig from fastapi_gen.generator import ( TEMPLATE_DIR, _find_template_dir, ...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_integration.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_integration.py
249
8
assert
test_main_py_has_fastapi_app
"""Integration tests for project generation.""" from pathlib import Path import pytest from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, ProjectConfig, ) from fastapi_gen.generator import generate_project class TestMinimalProjectGeneration: """Integration ...
"app = " in content or "app=" in content
added
fe52c58ce42d899213cc814324ad1c60066e78b94b025cb488da4cd3c472278f
assert|test_main_py_has_fastapi_app|"""Integration tests for project generation.""" from pathlib import Path import pytest from fastapi_gen.config import ( AuthType, BackgroundTaskType, CIType, DatabaseType, ProjectConfig, ) from fastapi_gen.generator import generate_project class TestMinimalProjectGeneration: """Integ...
null
null
null
vstorm-co/full-stack-ai-agent-template
train
0
97610067cb73de2ffff8e321f6d6b79bdce997c6
train
tests/test_prompts.py
train
vstorm-co/full-stack-ai-agent-template:tests/test_prompts.py
294
8
assert
test_returns_none_auth
"""Tests for fastapi_gen.prompts module.""" from typing import Any from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import ( AdminEnvironmentType, AuthType, BackgroundTaskType, CIType, DatabaseType, FrontendType, LogfireFeatures, OAuthProvider, WebS...
WebSocketAuthType.NONE
added
74e0fd836b7caf081f1a3fcb8b0e6bb3c8c526293f638bcae9937e15d17dcb57
assert|test_returns_none_auth|"""Tests for fastapi_gen.prompts module.""" from typing import Any from unittest.mock import MagicMock, patch import pytest from fastapi_gen.config import ( AdminEnvironmentType, AuthType, BackgroundTaskType, CIType, DatabaseType, FrontendType, LogfireFeatures, OAuthProvider, WebSocketAuth...
null
null
null