triton-inference-server / client

Triton Python, C++ and Java client libraries, and GRPC-generated client examples for go, java and scala.
BSD 3-Clause "New" or "Revised" License
521 stars 225 forks source link

Initialize logger for unit tests #655

Closed dyastremsky closed 1 month ago

dyastremsky commented 1 month ago

For capsys to check logged output, the logger needs to be initialized in each unit test. Right now, if the parser starts logging output, this test will still pass (unexpected behavior).

There is a separate ticket to look into creating a fixture so that this code can be run for every unit test from one place.