File: exceptions.py

package info (click to toggle)
pytest-subprocess 1.5.3-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 444 kB
  • sloc: python: 2,319; makefile: 17
file content (13 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
class ProcessNotRegisteredError(Exception):
    """
    Raised when the attempted command wasn't registered before.
    Use `fake_process.allow_unregistered(True)` if you want to use real subprocess.
    """


class IncorrectProcessDefinition(Exception):
    """Raised when the register() has been called with wrong arguments"""


class PluginInternalError(Exception):
    """Raised in case of an internal error in the plugin"""