tests._utils.assert_not_raises()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nop 0
1
# Copyright Pincer 2021-Present
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
# Full MIT License can be found in `LICENSE` at the project root.
3
4
from contextlib import contextmanager
5
6
7
@contextmanager
8
def assert_not_raises():
9
    """Dummy context manager to highlight a row of a test
10
    that should not raises any exception"""
11
    yield
12