Conditions | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=missing-docstring,unused-variable,unused-argument,expression-not-assigned,singleton-comparison |
||
8 | def describe_detected(): |
||
9 | |||
10 | def when_off_ci(monkeypatch): |
||
11 | monkeypatch.delenv('TRAVIS', raising=False) |
||
12 | monkeypatch.delenv('APPVEYOR', raising=False) |
||
13 | |||
14 | expect(services.detected()) == False |
||
15 | |||
16 | def when_on_ci(monkeypatch): |
||
17 | monkeypatch.setenv('TRAVIS', 'true') |
||
18 | |||
19 | expect(services.detected()) == True |
||
20 |