9 for l
in (
"VERBOSE",
"DEBUG",
"INFO",
"WARNING",
"ERROR",
"FATAL"):
10 assert hasattr(acts.logging, l)
11 assert hasattr(acts.logging.Level, l)
15 assert len(acts.PdgParticle.__members__) == 17
19 v3 = acts.Vector3(1, 2, 3)
20 with pytest.raises(TypeError):
21 acts.Vector3(1, 2, 3, 4)
22 with pytest.raises(TypeError):
25 v3 = acts.Vector3([1, 2, 3])
26 with pytest.raises(TypeError):
27 acts.Vector3([1, 2, 3, 4])
28 with pytest.raises(TypeError):
30 with pytest.raises(TypeError):
33 v4 = acts.Vector4(1, 2, 3, 4)
34 with pytest.raises(TypeError):
35 v4 = acts.Vector4(1, 2, 3)
36 v4 = acts.Vector4([1, 2, 3, 4])
37 with pytest.raises(TypeError):
38 acts.Vector4([1, 2, 3])
39 with pytest.raises(TypeError):
45 with pytest.raises(RuntimeError):
56 cap = capfd.readouterr()
58 assert "Create Sequencer (single-threaded)" in cap.out
59 assert "Processed 2 events" in cap.out
68 cap = capfd.readouterr()
70 assert "Create Sequencer" in cap.out
71 assert "Processed 2 events" in cap.out
75 rnd = acts.examples.RandomNumbers(seed=42)