Right now it is a real pain to write test suites for Apport's launchpad backend, since the bug filing process has lots of AJAXy stuff in between which make it very brittle to automatically file a bug on staging. (It broke a few weeks ago, and I still don't have a real idea how to fix it).
It would be a lot easier if bugs could be filed through launchpadlib. For that, the createBug() method would need to grow an optional argument for specifying a +storeblob handle. This would also solve the problem that you need a valid HTML cookie for the test suite.
Right now it is a real pain to write test suites for Apport's launchpad backend, since the bug filing process has lots of AJAXy stuff in between which make it very brittle to automatically file a bug on staging. (It broke a few weeks ago, and I still don't have a real idea how to fix it).
It would be a lot easier if bugs could be filed through launchpadlib. For that, the createBug() method would need to grow an optional argument for specifying a +storeblob handle. This would also solve the problem that you need a valid HTML cookie for the test suite.
Thank you for considering!
Martin