bornhack-website/src/utils/tests.py

11 lines
345 B
Python

from django.core.management import call_command
from django.test import TestCase
class ProductAvailabilityTest(TestCase):
"""Test bootstrap_devsite script (touching many codepaths)"""
def test_bootstrap_script(self):
"""If no orders have been made, the product is still available."""
call_command("bootstrap_devsite")