File: module_test.py

package info (click to toggle)
python-pook 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: python: 3,558; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 279 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from pook import interceptors


class CustomInterceptor(interceptors.BaseInterceptor):
    def activate(self): ...

    def disable(self): ...


def test_add_custom_interceptor():
    interceptors.add(CustomInterceptor)

    assert CustomInterceptor in interceptors.interceptors