Debian Codegraph @

tests/test_coverup_14.py

raw symbols SCIP
1 # file scalene/scalene_signals.py:61-77
2 # lines [61, 70, 71, 72, 73, 74, 75, 76]
3 # branches []
4
5 import pytest
6 from scalene.scalene_signals import ScaleneSignals
7
8
9 @pytest.fixture
10 def scalene_signals():
11 return ScaleneSignals()
12
13
14 def test_get_all_signals(scalene_signals):
15 signals = scalene_signals.get_all_signals()
16 assert isinstance(signals, list)
17 assert all(isinstance(signal, int) for signal in signals)
18 # Assuming the signals are unique, which they should be
19 assert len(signals) == len(set(signals))
20 # Check that cpu_signal is included in the list
21 assert scalene_signals.cpu_signal in signals
22 # Check that the list does not include the CPU timer signal
23 # Assuming cpu_timer_signal is an attribute of ScaleneSignals
24 # Uncomment the following line if such an attribute exists
25 # assert scalene_signals.cpu_timer_signal not in signals