class BugInformationTypeNotPermitted:
"""The information type is forbidden by the project's BugSharingPolicy."""
Bug.transitionToInformationType()
if information_type not in self.getAllowedBugInformationTypes():
raise BugSharingPolicyError()
^ Maybe we want to treat this as a separate bug because creation policy is correct, we just want to revise Bug.transitionToInformationType().
I also see we need to remove the from_api arg and drop the BugCannotBePrivate guard, because we do allow proprietary. I will report this as a separate bug.
This is roughly what I think is missing.
class BugInformationT ypeNotPermitted : y."""
"""The information type is forbidden by the project's BugSharingPolic
Bug.transitionT oInformationTyp e() BugInformationT ypes(): yError( )
if information_type not in self.getAllowed
raise BugSharingPolic
^ Maybe we want to treat this as a separate bug because creation policy is correct, we just want to revise Bug.transitionT oInformationTyp e().
I also see we need to remove the from_api arg and drop the BugCannotBePrivate guard, because we do allow proprietary. I will report this as a separate bug.