Option C Tools
Loading...
Searching...
No Matches
test_exclusions.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
# tests/tests_core/test_exclusions.py
4
5
"""
6
Purpose
7
-------
8
Validate default exclusion sets in ``oct.core.exclusions``, including the
9
OI-420 addition of ``fixtures`` to the linter exclusion set.
10
11
Responsibilities
12
----------------
13
- Confirm ``LINTER_EXCLUDE_DIRS`` excludes the ``fixtures`` directory.
14
- Confirm common exclusions remain intact.
15
16
Diagnostics
17
-----------
18
Domain: CORE-TESTS
19
L2: test lifecycle
20
L3: assertion details
21
L4: deep tracing
22
23
Contracts
24
---------
25
Inputs: none
26
Outputs: pass/fail assertions
27
"""
28
29
from
oct.core
import
exclusions
30
31
32
def
test_fixtures_excluded_from_linter
():
33
"""OI-420: fixtures directories are globally excluded from the linter."""
34
assert
"fixtures"
in
exclusions.LINTER_EXCLUDE_DIRS
35
36
37
def
test_common_exclusions_preserved
():
38
"""Sanity: linter exclusions are a superset of common exclusions."""
39
assert
exclusions.COMMON_EXCLUDE_DIRS.issubset(exclusions.LINTER_EXCLUDE_DIRS)
40
41
42
def
test_code_reviews_excluded
():
43
"""The 'Code Reviews' exclusion must still be present."""
44
assert
"Code Reviews"
in
exclusions.LINTER_EXCLUDE_DIRS
tests_core.test_exclusions.test_fixtures_excluded_from_linter
test_fixtures_excluded_from_linter()
Definition
test_exclusions.py:32
tests_core.test_exclusions.test_code_reviews_excluded
test_code_reviews_excluded()
Definition
test_exclusions.py:42
tests_core.test_exclusions.test_common_exclusions_preserved
test_common_exclusions_preserved()
Definition
test_exclusions.py:37
tests
tests_core
test_exclusions.py
Generated by
1.15.0