File: test_raise_test_exception.py

package info (click to toggle)
python-django-extensions 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,820 kB
  • sloc: python: 18,601; javascript: 7,354; makefile: 108; xml: 17
file content (13 lines) | stat: -rw-r--r-- 333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
import pytest

from django.core.management import call_command

from django_extensions.management.commands.raise_test_exception import (
    DjangoExtensionsTestException,
)


def test_raise_test_exception():
    with pytest.raises(DjangoExtensionsTestException):
        call_command("raise_test_exception")