neurobionics / opensourceleg

An open-source software library for numerical computation, data acquisition, and control of lower-limb robotic prostheses.
https://opensourceleg.org
GNU Lesser General Public License v2.1
32 stars 37 forks source link

Global Logger File Causing Unit Test Failures #291

Closed esharnow closed 2 weeks ago

esharnow commented 2 weeks ago

🐛 Bug Report

The tests for the robot module fail when run after the tests for the logging module. The tests fail, because the logger debug and error statements in the robot module tests are not being written to a logger file. However, the robot module tests pass when run before the logging module tests. We believe this may be due to changing the global logger file name in one of the logging module tests.

The unit tests can be found in my forked repository.

esharnow commented 2 weeks ago

Closing issue, because it had to do with problem with mocking in test files and not an issue with the logging module itself