Fix up CircleCI/TravisCI tests and webapi token generation.
Review Request #9467 — Created Jan. 1, 2018 and submitted
A few API changes in djblets and kgb caused a couple breakages in the
rbintegrations tests. This change fixes those up.In review, it was also pointed out that assertions inside callbacks that
come from something usingSignalHookwon't be recorded properly,
because the extension sandboxing swallows them. I've moved code around
so that we do all the assertions inside the test case code instead of in
deep callbacks.
Ran unit tests.
-
-
The asserts inside a method swapped by
kgbdon't work when called fromSignalHookcallbacks - the defaultsandbox_errors=Truecatches all exceptions. This is why the unexpected keyword argument error for_urlopendidn't cause the tests to fail before, and any failed asserts inside the method won't be seen either.Is there some way to possibly use
kgbto change the default forsandbox_errorsin unit tests? Or perhaps another more general solution?
- Summary:
-
Fix up CircleCI tests and webapi token generation.Fix up CircleCI/TravisCI tests and webapi token generation.
- Description:
-
A few API changes in djblets and kgb caused a couple breakages in the
rbintegrations tests. This change fixes those up. + + In review, it was also pointed out that assertions inside callbacks that
+ come from something using SignalHookwon't be recorded properly,+ because the extension sandboxing swallows them. I've moved code around + so that we do all the assertions inside the test case code instead of in + deep callbacks. - Commit:
-
2912eb6f856b53b7afe876dede0367ae66b7bbb93ea03085ccf5f301e3d8282574d8ab9ecb6cd25c
- Commit:
-
3ea03085ccf5f301e3d8282574d8ab9ecb6cd25cfbdbb70e88f0c8eea57b74ca0c546c1aa6f3aacc