#114 Unshared Account Deductions
* enables deducting from unshared eco accounts * account must be recorded and not deleted, so users can use it for deductions
This commit is contained in:
@@ -231,7 +231,9 @@ class EcoAccountWorkflowTestCase(BaseWorkflowTestCase):
|
||||
def test_edit_deduction(self):
|
||||
test_surface = self.eco_account.get_available_rest()[0]
|
||||
self.eco_account.set_recorded(self.superuser)
|
||||
self.intervention.share_with(self.superuser)
|
||||
self.eco_account.refresh_from_db()
|
||||
self.assertIn(self.superuser, self.intervention.is_shared_with(self.superuser))
|
||||
|
||||
deduction = EcoAccountDeduction.objects.create(
|
||||
intervention=self.intervention,
|
||||
|
||||
Reference in New Issue
Block a user