mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Prevent plumbum from causing the testsuite to fail (#70400)
This commit is contained in:
parent
70e125850c
commit
c96781a795
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
|
Loading…
x
Reference in New Issue
Block a user