diff --git a/tests/components/habitica/conftest.py b/tests/components/habitica/conftest.py new file mode 100644 index 00000000000..2401397be26 --- /dev/null +++ b/tests/components/habitica/conftest.py @@ -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