This commit is contained in:
tyjak 2025-02-06 19:44:25 +01:00
parent 377ab13705
commit 812a463846

View File

@ -1,4 +1,5 @@
import json
import os.path
import unittest
from copy import deepcopy
from unittest.mock import patch
@ -9,7 +10,7 @@ from i3pystatus.buds import Buds, BudsEqualizer, BudsPlacementStatus
class TestBuds(unittest.TestCase):
def setUp(self):
self.buds = Buds()
with open('test_buds.json', 'rb') as file:
with open(os.path.join(os.path.dirname(__file__), 'test_buds.json'), 'rb') as file:
self.payload = json.load(file)
@patch('i3pystatus.buds.run_through_shell')