def public_assignment(red_transients_run, user, public_source): assignment = ClassicalAssignmentFactory(run=red_transients_run, obj=public_source, requester=user, last_modified_by=user) yield assignment ClassicalAssignmentFactory.teardown(assignment)
def problematic_assignment(lris_run_20201118, public_ZTF20acgrjqm): return ClassicalAssignmentFactory( run=lris_run_20201118, obj=public_ZTF20acgrjqm, requester=lris_run_20201118.owner, last_modified_by=lris_run_20201118.owner, )
def problematic_assignment(lris_run_20201118, public_ZTF20acgrjqm): assignment = ClassicalAssignmentFactory( run=lris_run_20201118, obj=public_ZTF20acgrjqm, requester=lris_run_20201118.owner, last_modified_by=lris_run_20201118.owner, ) yield assignment ClassicalAssignmentFactory.teardown(assignment)