mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
committed by
Toby Harradine
parent
dae75521d3
commit
889fa63aff
@@ -4,7 +4,6 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from unittest.mock import MagicMock
|
||||
from raven.versioning import fetch_git_sha
|
||||
|
||||
from redbot.pytest.downloader import *
|
||||
|
||||
@@ -60,18 +59,6 @@ async def test_current_branch(bot_repo):
|
||||
assert branch not in ("WRONG", "")
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_current_hash(bot_repo):
|
||||
branch = await bot_repo.current_branch()
|
||||
bot_repo.branch = branch
|
||||
|
||||
commit = await bot_repo.current_commit()
|
||||
|
||||
sentry_sha = fetch_git_sha(str(bot_repo.folder_path))
|
||||
|
||||
assert sentry_sha == commit
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_existing_repo(repo_manager):
|
||||
repo_manager.does_repo_exist = MagicMock(return_value=True)
|
||||
|
||||
Reference in New Issue
Block a user