File: test_commands.py

package info (click to toggle)
python-django-structlog 9.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,004 kB
  • sloc: python: 3,509; sh: 206; javascript: 79; makefile: 19
file content (16 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest
from django.core import management

from django_structlog_demo_project.command_examples.management.commands import (
    example_command,
)

pytestmark = pytest.mark.django_db


class TestCommand:
    def test_command(self):
        assert (
            management.call_command(example_command.Command(), "bar", verbosity=0)
            is None
        )