From fb37d88cb275f11f33aea03e325a17dd3c5f2a22 Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Fri, 28 May 2021 08:11:42 +0200 Subject: [PATCH] refactors location fixer and test to include "location" --- migration/ormigrate/{issue220.py => issue220_location.py} | 3 +++ .../tests/{test_issue220.py => test_issue220_location.py} | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) rename migration/ormigrate/{issue220.py => issue220_location.py} (99%) rename migration/tests/{test_issue220.py => test_issue220_location.py} (98%) diff --git a/migration/ormigrate/issue220.py b/migration/ormigrate/issue220_location.py similarity index 99% rename from migration/ormigrate/issue220.py rename to migration/ormigrate/issue220_location.py index e0ea468..c26411f 100644 --- a/migration/ormigrate/issue220.py +++ b/migration/ormigrate/issue220_location.py @@ -3,6 +3,9 @@ from ormigrate.fixer import PageFixer, WikiPage class LocationFixer(PageFixer): + ''' + fixes Locations + ''' COUNTRY = "Country" REGION = "State" CITY = "City" diff --git a/migration/tests/test_issue220.py b/migration/tests/test_issue220_location.py similarity index 98% rename from migration/tests/test_issue220.py rename to migration/tests/test_issue220_location.py index 76c6e96..c1b66a0 100644 --- a/migration/tests/test_issue220.py +++ b/migration/tests/test_issue220_location.py @@ -1,6 +1,6 @@ from unittest import TestCase -from ormigrate.issue220 import LocationFixer +from ormigrate.issue220_location import LocationFixer from ormigrate.toolbox import HelperFunctions as hf class TestLocationFixer(TestCase):