Prevent plumbum from causing the testsuite to fail (#70400)

This commit is contained in:
J. Nick Koston 2022-04-21 20:40:23 -10:00 committed by GitHub
parent 70e125850c
commit c96781a795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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