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 usingSignalHook
won'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
kgb
don't work when called fromSignalHook
callbacks - the defaultsandbox_errors=True
catches all exceptions. This is why the unexpected keyword argument error for_urlopen
didn'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
kgb
to change the default forsandbox_errors
in 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 SignalHook
won'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