From 812a4638465c2dfcb0100178ebd2340cb906a8aa Mon Sep 17 00:00:00 2001 From: tyjak Date: Thu, 6 Feb 2025 19:44:25 +0100 Subject: [PATCH] Apply MR #869 --- tests/test_buds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_buds.py b/tests/test_buds.py index 2c9da84..29a5b73 100644 --- a/tests/test_buds.py +++ b/tests/test_buds.py @@ -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')