File: __init__.py

package info (click to toggle)
autosuspend 9.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: python: 5,431; xml: 13; makefile: 10; javascript: 1
file content (14 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import abc
from typing import Self

from autosuspend.checks import Check


class CheckTest(abc.ABC):
    @abc.abstractmethod
    def create_instance(self: Self, name: str) -> Check:
        pass

    def test_the_configured_name_is_used(self) -> None:
        name = "checktestname"
        assert self.create_instance(name).name == name