Apply MR #869
This commit is contained in:
parent
377ab13705
commit
812a463846
@ -1,4 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import os.path
|
||||||
import unittest
|
import unittest
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
@ -9,7 +10,7 @@ from i3pystatus.buds import Buds, BudsEqualizer, BudsPlacementStatus
|
|||||||
class TestBuds(unittest.TestCase):
|
class TestBuds(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.buds = Buds()
|
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)
|
self.payload = json.load(file)
|
||||||
|
|
||||||
@patch('i3pystatus.buds.run_through_shell')
|
@patch('i3pystatus.buds.run_through_shell')
|
||||||
|
Loading…
Reference in New Issue
Block a user