Renamed all the is_XXX_needed properties to is_need_XXX. For example, especially the is_offset_needed property to is_need_offset, to be clear and understandable.
This commit is contained in:
@ -377,7 +377,7 @@ class AccountTestCase(unittest.TestCase):
|
||||
data={"csrf_token": self.csrf_token,
|
||||
"base_code": "6172",
|
||||
"title": stock.title,
|
||||
"is_offset_needed": "yes"})
|
||||
"is_need_offset": "yes"})
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response.headers["Location"], create_uri)
|
||||
|
||||
@ -484,7 +484,7 @@ class AccountTestCase(unittest.TestCase):
|
||||
data={"csrf_token": self.csrf_token,
|
||||
"base_code": "6172",
|
||||
"title": stock.title,
|
||||
"is_offset_needed": "yes"})
|
||||
"is_need_offset": "yes"})
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response.headers["Location"], edit_uri)
|
||||
|
||||
|
Reference in New Issue
Block a user