File: test_constants.py

package info (click to toggle)
ansible-lint 25.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,660 kB
  • sloc: python: 19,201; sh: 70; makefile: 7
file content (10 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
"""Tests for constants module."""

from ansiblelint.constants import States


def test_states() -> None:
    """Test that states are evaluated as boolean false."""
    assert bool(States.NOT_LOADED) is False
    assert bool(States.LOAD_FAILED) is False
    assert bool(States.UNKNOWN_DATA) is False