@@ -12,7 +12,7 @@ def test_query_all_columns(self):
1212
1313 self .assertDictEqual (
1414 response [0 ],
15- {'id' : 1 , 'name' : 'pikachu' , 'manager' : 'ash' , 'power ' : 1000 }
15+ {'id' : 1 , 'name' : 'pikachu' , 'manager' : 'ash' , 'popularity ' : 1000 }
1616 )
1717
1818 def test_query_some_columns (self ):
@@ -48,7 +48,7 @@ def test_where_greater_than(self):
4848 response = Band .select (
4949 'name'
5050 ).where (
51- Band .power > 1000
51+ Band .popularity > 1000
5252 ).run_sync ()
5353
5454 print (f'response = { response } ' )
@@ -64,7 +64,7 @@ def test_where_greater_equal_than(self):
6464 response = Band .select (
6565 'name'
6666 ).where (
67- Band .power >= 1000
67+ Band .popularity >= 1000
6868 ).run_sync ()
6969
7070 print (f'response = { response } ' )
@@ -80,7 +80,7 @@ def test_where_less_than(self):
8080 response = Band .select (
8181 'name'
8282 ).where (
83- Band .power < 1000
83+ Band .popularity < 1000
8484 ).run_sync ()
8585
8686 print (f'response = { response } ' )
@@ -96,7 +96,7 @@ def test_where_less_equal_than(self):
9696 response = Band .select (
9797 'name'
9898 ).where (
99- Band .power <= 1000
99+ Band .popularity <= 1000
100100 ).run_sync ()
101101
102102 print (f'response = { response } ' )
@@ -112,7 +112,7 @@ def test_where_and(self):
112112 response = Band .select (
113113 'name'
114114 ).where (
115- (Band .power <= 1000 ) & (Band .name .like ('%chu' ))
115+ (Band .popularity <= 1000 ) & (Band .name .like ('%chu' ))
116116 ).run_sync ()
117117
118118 print (f'response = { response } ' )
@@ -173,8 +173,8 @@ def test_complex_where(self):
173173 response = Band .select (
174174 'name'
175175 ).where (
176- ((Band .power == 2000 ) & (Band .manager == 'sally' )) |
177- ((Band .power == 10 ) & (Band .manager == 'gordon' ))
176+ ((Band .popularity == 2000 ) & (Band .manager == 'sally' )) |
177+ ((Band .popularity == 10 ) & (Band .manager == 'gordon' ))
178178 ).run_sync ()
179179
180180 print (f'response = { response } ' )
0 commit comments