Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: f53e0c589ccbf5d7012c787997d6c1cb95f19bd5
https://github.com/tribe29/checkmk/commit/f53e0c589ccbf5d7012c787997d6c1cb9…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-04-24 (Fri, 24 Apr 2020)
Changed paths:
M tests-py3/unit/cmk/base/data_sources/test_snmp_data_source.py
Log Message:
-----------
Reset mutable global state with a fixture
The data sources sadly make a rather complex use of mutable global
state. This state must be reset between tests so that they remain
independent of the order in which they run.
CMK-4244
Change-Id: I85617d711090c64d631f09d35f710cf2991c20d4
Commit: 3f59479ee0437345d34ffec2c1fe443921c46a14
https://github.com/tribe29/checkmk/commit/3f59479ee0437345d34ffec2c1fe44392…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-04-24 (Fri, 24 Apr 2020)
Changed paths:
M cmk/base/data_sources/abstract.py
M tests-py3/unit/cmk/base/data_sources/test_snmp_data_source.py
Log Message:
-----------
Extract FileCache class
CMK-4244
Change-Id: Ie2dd9ef83209f6f0905bcbea2aeeb97c9754c32d
Commit: 290ccf2063dd1524fb99af23faf5b61ab704d945
https://github.com/tribe29/checkmk/commit/290ccf2063dd1524fb99af23faf5b61ab…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-04-24 (Fri, 24 Apr 2020)
Changed paths:
M cmk/base/data_sources/abstract.py
M tests-py3/unit/cmk/base/data_sources/test_snmp_data_source.py
Log Message:
-----------
Small FileCache + tests refactorings
FileCache
=========
- use pathlib.Path to makes code easier to read and easier to tests
- it is not necessary to build strings for the logger
Tests
=====
- Complete read/write to FileCache test
- Tests that were using `mocker` objects now examplify
actual expected behavior, without `mocker` that is
CMK-4244
Change-Id: I41080602d50e2d07d0796e74cfb9db225b1fa076
Compare:
https://github.com/tribe29/checkmk/compare/d77b8332d45f...290ccf2063dd