Skip to content

Commit dfe4de3

Browse files
committed
Pep8
1 parent c688dbb commit dfe4de3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_fetch.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ def test_query_caching(self):
292292
def test_fetch_group_by(self):
293293
# https://github.com/datajoint/datajoint-python/issues/914
294294

295-
expectedData = [{'parent_id': 1}]
296-
fetchedData = Parent().fetch('KEY', order_by='name')
297-
print(fetchedData)
298-
assert fetchedData == expectedData
295+
expected_data = [{'parent_id': 1}]
296+
fetched_data = Parent().fetch('KEY', order_by='name')
297+
print(fetched_data)
298+
assert fetched_data == expected_data
299299

300300
def test_dj_U_DISTINCT(self):
301301
# Test developed to see if removing DISTINCT from the select statement
@@ -311,18 +311,18 @@ def test_dj_U_DISTINCT(self):
311311
Stimulus.insert(contents)
312312

313313
# Query the whole table
314-
testQuery = Stimulus()
314+
test_query = Stimulus()
315315

316316
# Use dj.U to create a list of unique contrast and brightness combinations
317-
result = dj.U('contrast', 'brightness') & testQuery
318-
expectedResult = [{'contrast': 2, 'brightness': 3},
317+
result = dj.U('contrast', 'brightness') & test_query
318+
expected_result = [{'contrast': 2, 'brightness': 3},
319319
{'contrast': 3, 'brightness': 2},
320320
{'contrast': 5, 'brightness': 5}]
321321

322-
fechedResult = result.fetch(as_dict=True)
322+
feched_result = result.fetch(as_dict=True)
323323

324324
# Cleanup table
325325
Stimulus.delete()
326326

327327
# Test to see if the repeated row was removed in the results
328-
assert fechedResult == expectedResult
328+
assert feched_result == expected_result

0 commit comments

Comments
 (0)