mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -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)
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import logging
|
||||
|
||||
from redbot.core import sentry
|
||||
|
||||
|
||||
def test_sentry_capture(red):
|
||||
log = logging.getLogger(__name__)
|
||||
mgr = sentry.SentryManager(log)
|
||||
|
||||
assert mgr.client is not None
|
||||
|
||||
mgr.client.captureMessage("Message from test_sentry module.")
|
||||
Reference in New Issue
Block a user