Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kba
Copy link
Member

@kba kba commented Mar 5, 2021

The unit tests behaved strangely when a $HOME/ocrd_logging.conf was present. Most of the errors result from different configuration, hence the string in processor-output tests fail, which is to be expected. However, there were issues related to the os.chdir call in setUpClass in tests/base.py. Moving this to setUp and ensuring that all tests call super().setUp in their own setUp (where applicable) fixes this.

Also contains a few improvements to the comments in the bundled ocrd_logging.conf by @bertsky.

We should probably create an ocrd_logging.conf that is equivalent to the builtin config and run the unit tests once without ocrd_logging.conf and once with.

@kba kba merged commit 1d59bf1 into master Mar 7, 2021
@kba kba deleted the logging-test-fix branch March 7, 2021 14:07
@bertsky bertsky mentioned this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants