From 4e070358a92e47f03c83ec5af378f3a84798dc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Fri, 13 Mar 2020 15:50:14 +0100 Subject: [PATCH] fix duplicate slugs in tests --- categories/fixtures/musicgenres.json | 2 +- categories/tests/test_category_import.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/categories/fixtures/musicgenres.json b/categories/fixtures/musicgenres.json index 3817510..1cf4e4f 100644 --- a/categories/fixtures/musicgenres.json +++ b/categories/fixtures/musicgenres.json @@ -2292,7 +2292,7 @@ "name": "Country pop", "parent": 142, "level": 1, - "slug": "country-pop", + "slug": "country-pop_1", "lft": 100, "tree_id": 10, "order": 1 diff --git a/categories/tests/test_category_import.py b/categories/tests/test_category_import.py index acd366f..3c2a5b5 100644 --- a/categories/tests/test_category_import.py +++ b/categories/tests/test_category_import.py @@ -58,7 +58,7 @@ class CategoryImportTest(TestCase): Should raise an exception. """ string1 = ["cat1", " cat1-1", "\tcat1-2-FAIL!", ""] - string2 = ["cat1", "\tcat1-1", " cat1-2-FAIL!", ""] + string2 = ["cat1a", "\tcat1-1a", " cat1-2-FAIL!", ""] cmd = Command() # raise Exception