mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Prevent plumbum from causing the testsuite to fail (#70400)
This commit is contained in:
15
tests/components/habitica/conftest.py
Normal file
15
tests/components/habitica/conftest.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""Tests for the habitica component."""
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def disable_plumbum():
|
||||
"""Disable plumbum in tests as it can cause the test suite to fail.
|
||||
|
||||
plumbum can leave behind PlumbumTimeoutThreads
|
||||
"""
|
||||
with patch("plumbum.local"), patch("plumbum.colors"):
|
||||
yield
|
Reference in New Issue
Block a user