()
| 758 | |
| 759 | @pytest.fixture |
| 760 | def serena_config(): |
| 761 | config = SerenaConfig(gui_log_window=False, web_dashboard=False, log_level=logging.ERROR) |
| 762 | |
| 763 | # Create test projects for all supported languages |
| 764 | test_projects = [] |
| 765 | for language in [ |
| 766 | Language.PYTHON, |
| 767 | Language.PYTHON_TY, |
| 768 | Language.GO, |
| 769 | Language.JAVA, |
| 770 | Language.KOTLIN, |
| 771 | Language.RUST, |
| 772 | Language.TYPESCRIPT, |
| 773 | Language.PHP, |
| 774 | Language.CSHARP, |
| 775 | Language.CLOJURE, |
| 776 | Language.FSHARP, |
| 777 | Language.POWERSHELL, |
| 778 | Language.CPP, |
| 779 | Language.HAXE, |
| 780 | Language.LEAN4, |
| 781 | Language.MSL, |
| 782 | ]: |
| 783 | repo_path = get_repo_path(language) |
| 784 | if repo_path.exists(): |
| 785 | project_name = f"test_repo_{language}" |
| 786 | project = Project( |
| 787 | project_root=str(repo_path), |
| 788 | project_config=ProjectConfig( |
| 789 | project_name=project_name, |
| 790 | languages=[language], |
| 791 | ignored_paths=[], |
| 792 | excluded_tools=[], |
| 793 | read_only=False, |
| 794 | ignore_all_files_in_gitignore=True, |
| 795 | initial_prompt="", |
| 796 | encoding="utf-8", |
| 797 | ), |
| 798 | serena_config=config, |
| 799 | ) |
| 800 | test_projects.append(RegisteredProject.from_project_instance(project)) |
| 801 | |
| 802 | config.projects = test_projects |
| 803 | return config |
| 804 | |
| 805 | |
| 806 | def read_project_file(project: Project, relative_path: str) -> str: |
nothing calls this directly
no test coverage detected