timofurrer / w1thermsensor

A Python package and CLI tool to work with w1 temperature sensors like DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other devices.
MIT License
493 stars 113 forks source link

Fix tests which depend on the environment #63

Closed timofurrer closed 4 years ago

timofurrer commented 4 years ago

The following test:

https://github.com/timofurrer/w1thermsensor/blob/f8ac4bde82ac322f19ba48ae3871a5dca0a7ff74/tests/unit/test_core.py#L550

... depends on the environment. The test will fail if a w1 therm kernel module is already loaded.