Prevent plumbum from causing the testsuite to fail (#70400)
This commit is contained in:
parent
70e125850c
commit
c96781a795
1 changed files with 15 additions and 0 deletions
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…
Add table
Reference in a new issue