Tech-debt: test_create of bay conductor need to be improve
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
New
|
Wishlist
|
Unassigned |
Bug Description
This is from review:
https:/
# FixMe(eliqiao): bay_create will call bay.create() again, this so bad
# because we have already called it in setUp since other test case will
# share the codes in setUp()
# But in self.handler.
# so bay.create will create a new recored with baymodel_id None,
# this is bad because we load BayModel object in Bay object by
# baymodel_id. Here update self.bay.
# will get notice that baymodel_id is updated and will update it
# in db.
Changed in magnum: | |
assignee: | nobody → Eli Qiao (taget-9) |
Changed in magnum: | |
assignee: | Eli Qiao (taget-9) → nobody |
importance: | Undecided → Wishlist |