self.regs[0x00:0x01] = 0x0f, 0x00\r
\r
\r
+@pytest.fixture(scope='function', autouse=True)\r
+def cleanup():\r
+ yield None\r
+ try:\r
+ del sys.modules['enviroplus']\r
+ except KeyError:\r
+ pass\r
+ try:\r
+ del sys.modules['enviroplus.noise']\r
+ except KeyError:\r
+ pass\r
+ try:\r
+ del sys.modules['enviroplus.gas']\r
+ except KeyError:\r
+ pass\r
+\r
+\r
@pytest.fixture(scope='function', autouse=False)\r
def GPIO():\r
"""Mock RPi.GPIO module."""\r