failmap/admin

View on GitHub
websecmap/scanners/tests/test_dummy.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Integration tests of scanner commands."""

import json

from django.core.management import call_command

TEST_ORGANIZATION = "faaloniƫ"
NON_EXISTING_ORGANIZATION = "faaloniet"


def test_dummy(responses, db, faaloniae):
    """Test running dummy scan."""

    result = json.loads(call_command("scan", "dummy", "-v3", "-o", TEST_ORGANIZATION))

    # dummy returns random success/failure results, only check if there is a result, not the result itself
    assert result[0] is None