From 389a2f53638b2cc7be35fa196b2dbe350ab66563 Mon Sep 17 00:00:00 2001 From: Anton M Date: Wed, 19 Feb 2025 23:27:20 +0100 Subject: [PATCH] fix tests --- validity/tests/conftest.py | 2 +- validity/tests/test_views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/validity/tests/conftest.py b/validity/tests/conftest.py index fe7b7aa..4106f0c 100644 --- a/validity/tests/conftest.py +++ b/validity/tests/conftest.py @@ -131,7 +131,7 @@ def __getitem__(self, item): settings.MIGRATION_MODULES = UseTestMigrations( lambda app: None ) # force creating the tables according to the models - call_command("migrate", interactive=False, database=connection.alias, run_syncdb=True) + call_command("migrate", interactive=False, database=connection.alias, run_syncdb=True, verbosity=0) settings.MIGRATION_MODULES = {} diff --git a/validity/tests/test_views.py b/validity/tests/test_views.py index b21f0a6..25ccd4b 100644 --- a/validity/tests/test_views.py +++ b/validity/tests/test_views.py @@ -202,8 +202,8 @@ class TestCustomCommand(ViewTest): factory_class = partial(CommandFactory, parameters={"a": {"b": {"c": "d"}}}, type="custom") model_class = models.Command post_body = { - "name": "CMD-2", - "label": "CMD_2", + "name": "cmd-2", + "label": "cmd_2", "type": "custom", "params": '{"p1": "v1"}', }