Deltares / Deltares/imod-python

Logging is being used unnecessary in the unit tests

Open
#932 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
41
Forks
12
Avg merge
21h 8m
Merged PRs (30d)
1

Description

In several unit tests Logging is being enabled and tested. The logging is however never being disabled.
This has the consequence that log file becomes bigger and bigger and the test become slower.

The tests where logging is being enabled are:

image

We need some kind of teardown that sets the logger back to the NullLogger

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the unit tests identified in the issue image and find where logging is enabled and tested. Add a teardown that restores the logger to NullLogger, then run the affected tests and verify logging is disabled afterward without increasing the log file or slowing subsequent tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.