mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 16:13:22 +02:00
Archive unmaintained servers
Removed the following servers from main branch: - aws-kb-retrieval-server - brave-search - everart - gdrive - git - github - gitlab - google-maps - postgres - puppeteer - redis - sentry - slack - sqlite These servers remain maintained: - sequentialthinking - time - memory - fetch - filesystem - everything Full history preserved in archive-servers branch 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
import git
|
||||
from mcp_server_git.server import git_checkout
|
||||
import shutil
|
||||
|
||||
@pytest.fixture
|
||||
def test_repository(tmp_path: Path):
|
||||
repo_path = tmp_path / "temp_test_repo"
|
||||
test_repo = git.Repo.init(repo_path)
|
||||
|
||||
Path(repo_path / "test.txt").write_text("test")
|
||||
test_repo.index.add(["test.txt"])
|
||||
test_repo.index.commit("initial commit")
|
||||
|
||||
yield test_repo
|
||||
|
||||
shutil.rmtree(repo_path)
|
||||
|
||||
def test_git_checkout_existing_branch(test_repository):
|
||||
test_repository.git.branch("test-branch")
|
||||
result = git_checkout(test_repository, "test-branch")
|
||||
|
||||
assert "Switched to branch 'test-branch'" in result
|
||||
assert test_repository.active_branch.name == "test-branch"
|
||||
|
||||
def test_git_checkout_nonexistent_branch(test_repository):
|
||||
|
||||
with pytest.raises(git.GitCommandError):
|
||||
git_checkout(test_repository, "nonexistent-branch")
|
||||
Reference in New Issue
Block a user