This is an automatically generated e-mail. To reply, visit: http://reviewboard-tflink.rhcloud.com/r/23/

On May 2nd, 2013, 5:09 a.m. UTC, Tim Flink wrote:

testing/test_bugchange.py (Diff revision 2)
85
        test_bz._do_proposal = exception_raiser(Fault(50, 'not 51 exception'))
I realize that I'm being picky here but why are you effectively monkeypatching the do_proposal method and creating a Dingus that effectively does nothing in this case?

Wouldn't it be closer to actual behavior to have the Dingus throw a fault instead of swapping out the do_proposal method?

Either way, I'd rather see one approach or the other - creating mock-ish objects that aren't actually used is not a good practice to get into
Good point. Patch updated.

- Martin


On May 2nd, 2013, 10:27 a.m. UTC, Martin Krizek wrote:

Review request for blockerbugs.
By Martin Krizek.

Updated May 2, 2013, 10:27 a.m.

Bugs: 372
Repository: blockerbugs

Description

This patch wraps bugzilla faults in a BugzillaError and prevents them from not being logged and generating http 500 server error.

Diffs

  • testing/test_bugchange.py (596e922283bfd20fc0ac6811aa1eef3ef45378ea)
  • blockerbugs/util/bz_interface.py (0579b2455b57a03e3bee570b8cd97aac0eeaf1a4)
  • blockerbugs/controllers/main.py (6d32e5de91900cda33f5e0342c7854adb24fc8b6)

View Diff