[roll pigweed] pw_unit_test: Export missing types from Python module

The `EventHandler` type, which is exported from the pw_unit_test Python
module, has functions to override that take the TestExpectation
type as arguments. However, the TestExpectation type is not exposed in
the module's __init__.py (unlike other related types), so it's not
easily accessible from dependent code. This fixes the issue.

Additionally, EventHandler has a function that takes the result of a
test case. This is passed as an `int`, using the value of the generated
internal protobuf. To use this in dependent code, you'd need to either
find and use the generated protobuf (which isn't clear because the type
isn't listed), or use magic constants in the code. This commit also
addresses this issue by wrapping these results in an enum
TestCaseResult and exporting that.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/103486

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: bc59ea28cf3c442..f89426038c046b7
Roller-URL: https://ci.chromium.org/b/8807439204137709393
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8807439204137709393
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ida3b7025ab33ba1a961c6dcfe5758f4d2dc41096
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/103720
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: e707e77d0a4ba63f89b9b0ace65f1e00adc14560
  1. .gitmodules
  2. test.sh