Skip to content
Snippets Groups Projects
Commit 97357b40 authored by Deaktivert bruker's avatar Deaktivert bruker
Browse files

greg.tests: lower faker logging verbosity

The faker module spams the logs from test runs with needless messages
such as these:

	INFO:faker.factory:Provider `faker.providers.address` has been localized to `en_US`.
	INFO:faker.factory:Provider `faker.providers.automotive` has been localized to `en_US`.
	WARNING:faker.factory:Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.

By lowering the test logging verbosity of this module in pytest's conftests.py,
we silence these.

Fixes: GREG-14
parent 27c34be9
No related branches found
No related tags found
1 merge request!11greg.tests: migrate to pytest test runner
import logging
# faker spams the logs with localisation warnings
# see https://github.com/joke2k/faker/issues/753
logging.getLogger("faker").setLevel(logging.ERROR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment