@@ -292,10 +292,10 @@ def test_query_caching(self):
292
292
def test_fetch_group_by (self ):
293
293
# https://github.com/datajoint/datajoint-python/issues/914
294
294
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
299
299
300
300
def test_dj_U_DISTINCT (self ):
301
301
# Test developed to see if removing DISTINCT from the select statement
@@ -311,18 +311,18 @@ def test_dj_U_DISTINCT(self):
311
311
Stimulus .insert (contents )
312
312
313
313
# Query the whole table
314
- testQuery = Stimulus ()
314
+ test_query = Stimulus ()
315
315
316
316
# 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 },
319
319
{'contrast' : 3 , 'brightness' : 2 },
320
320
{'contrast' : 5 , 'brightness' : 5 }]
321
321
322
- fechedResult = result .fetch (as_dict = True )
322
+ feched_result = result .fetch (as_dict = True )
323
323
324
324
# Cleanup table
325
325
Stimulus .delete ()
326
326
327
327
# 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