From 7626d375b7600a7321f8564f6700ed070993df02 Mon Sep 17 00:00:00 2001 From: Thomas Flummer Date: Sun, 1 Nov 2020 18:26:20 +0100 Subject: [PATCH] Renamed references to bootstrap_devsite, to follow new name --- README.md | 2 +- src/utils/management/commands/bootstrap_devsite.py | 4 ++-- src/utils/tests.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 01ef9dfc..bdb15190 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ Is this a new installation? Initialize the database: Is this for local development? Bootstrap the database with dummy data and users: ``` -(venv) $ python src/manage.py bootstrap-devsite +(venv) $ python src/manage.py bootstrap_devsite ``` diff --git a/src/utils/management/commands/bootstrap_devsite.py b/src/utils/management/commands/bootstrap_devsite.py index e52e4ac6..207cc0bf 100644 --- a/src/utils/management/commands/bootstrap_devsite.py +++ b/src/utils/management/commands/bootstrap_devsite.py @@ -1712,7 +1712,7 @@ class Command(BaseCommand): def handle(self, *args, **options): start = timezone.now() self.output( - self.style.SUCCESS("----------[ Running bootstrap-devsite ]----------") + self.style.SUCCESS("----------[ Running bootstrap_devsite ]----------") ) self.output( self.style.SUCCESS( @@ -1854,4 +1854,4 @@ class Command(BaseCommand): self.output("done!") duration = timezone.now() - start - self.output(f"bootstrap-devsite took {duration}!") + self.output(f"bootstrap_devsite took {duration}!") diff --git a/src/utils/tests.py b/src/utils/tests.py index 23b8899f..7850521f 100644 --- a/src/utils/tests.py +++ b/src/utils/tests.py @@ -3,8 +3,8 @@ from django.test import TestCase class ProductAvailabilityTest(TestCase): - """ Test bootstrap-devsite script (touching many codepaths) """ + """ 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") + call_command("bootstrap_devsite")