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"""
6Purpose
7-------
8Validate default exclusion sets in ``oct.core.exclusions``, including the
9OI-420 addition of ``fixtures`` to the linter exclusion set.
10
11Responsibilities
12----------------
13- Confirm ``LINTER_EXCLUDE_DIRS`` excludes the ``fixtures`` directory.
14- Confirm common exclusions remain intact.
15
16Diagnostics
17-----------
18Domain: CORE-TESTS
19L2: test lifecycle
20L3: assertion details
21L4: deep tracing
22
23Contracts
24---------
25Inputs: none
26Outputs: pass/fail assertions
27"""
28
29from oct.core import exclusions
30
31
33 """OI-420: fixtures directories are globally excluded from the linter."""
34 assert "fixtures" in exclusions.LINTER_EXCLUDE_DIRS
35
36
38 """Sanity: linter exclusions are a superset of common exclusions."""
39 assert exclusions.COMMON_EXCLUDE_DIRS.issubset(exclusions.LINTER_EXCLUDE_DIRS)
40
41
43 """The 'Code Reviews' exclusion must still be present."""
44 assert "Code Reviews" in exclusions.LINTER_EXCLUDE_DIRS