tests._utils   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A assert_not_raises() 0 5 1
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