From b1f96836615c02a0b85386ecbc8ddc2993d64e6a 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 b832884f..8c9e092b 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 3db1be42..d3dcdaf3 100644 --- a/categories/tests/test_category_import.py +++ b/categories/tests/test_category_import.py @@ -57,7 +57,7 @@ def testMixingTabsSpaces(self): 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