We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f582c commit be63866Copy full SHA for be63866
library/tests/test_setup.py
@@ -1,3 +1,6 @@
1
+import pytest
2
+
3
4
def test_gas_setup(GPIO, smbus):
5
from enviroplus import gas
6
gas._is_setup = False
@@ -11,6 +14,9 @@ def test_gas_unavailable(GPIO, mocksmbus):
11
14
12
15
assert gas.available() == False
13
16
17
+ with pytest.raises(RuntimeError):
18
+ gas.read_all()
19
20
21
def test_gas_available(GPIO, mocksmbus):
22
0 commit comments