Skip to content

Commit 71ef5c4

Browse files
committed
chore: fix mock data lint
1 parent 8f49cf6 commit 71ef5c4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/mock_data.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,8 @@
124124

125125
TESTDATA = pathlib.Path("tests/testdata")
126126

127-
PRODUCTS = {
128-
file.name: json.load(file.open())
129-
for file in TESTDATA.glob("home_data_product_*.json")
130-
}
131-
DEVICES = {
132-
file.name: json.load(file.open())
133-
for file in TESTDATA.glob("home_data_device_*.json")
134-
}
127+
PRODUCTS = {file.name: json.load(file.open()) for file in TESTDATA.glob("home_data_product_*.json")}
128+
DEVICES = {file.name: json.load(file.open()) for file in TESTDATA.glob("home_data_device_*.json")}
135129

136130
# Products
137131
A27_PRODUCT_DATA = PRODUCTS["home_data_product_a27.json"]

0 commit comments

Comments
 (0)