Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Mar 2, 2024
1 parent cabfa76 commit 92e348f
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_argparse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test the command line interface. The CLI interface is implemented with
argparse."""
from __future__ import annotations

import io
import subprocess
Expand Down
2 changes: 2 additions & 0 deletions tests/test_boot_not_finised.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from tests.helper import MPopen, execute_main


Expand Down
1 change: 1 addition & 0 deletions tests/test_data_source_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests"""
from __future__ import annotations

from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_dbus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the D-Bus API as a data source."""
from __future__ import annotations

from unittest.mock import patch

Expand Down
2 changes: 2 additions & 0 deletions tests/test_option_exclude.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from tests.helper import MockResult, execute_main


Expand Down
2 changes: 2 additions & 0 deletions tests/test_option_ignore_inactive_state.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from tests.helper import execute_main


Expand Down
2 changes: 2 additions & 0 deletions tests/test_scope_startup_time.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from tests.helper import execute_main


Expand Down
2 changes: 2 additions & 0 deletions tests/test_type_checkers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from check_systemd import (
_check_active_state, # type: ignore
_check_load_state, # type: ignore
Expand Down
1 change: 1 addition & 0 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests"""
from __future__ import annotations

from unittest.mock import patch

Expand Down
2 changes: 2 additions & 0 deletions tests/test_version246.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from tests.helper import execute_main


Expand Down

0 comments on commit 92e348f

Please sign in to comment.