Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
refactoring: #845 rename module "statuses" to "status"
Browse files Browse the repository at this point in the history
  • Loading branch information
das-g committed May 9, 2017
1 parent da357ff commit 04da18d
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion osmaxx/conversion/management/commands/result_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from osmaxx.conversion import models as conversion_models
from osmaxx.conversion._settings import CONVERSION_SETTINGS
from osmaxx.conversion.constants.statuses import FINAL_STATUSES, FINISHED, FAILED
from osmaxx.conversion.constants.status import FINAL_STATUSES, FINISHED, FAILED

logging.basicConfig()
logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion osmaxx/conversion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from osmaxx.conversion.converters.converter_gis.detail_levels import DETAIL_LEVEL_CHOICES, DETAIL_LEVEL_ALL
from osmaxx.conversion.constants.coordinate_reference_systems import CRS_CHOICES
from osmaxx.conversion.constants.formats import FORMAT_CHOICES
from osmaxx.conversion.constants.statuses import STATUS_CHOICES, RECEIVED
from osmaxx.conversion.constants.status import STATUS_CHOICES, RECEIVED


def job_directory_path(instance, filename):
Expand Down
2 changes: 1 addition & 1 deletion osmaxx/excerptexport/models/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Export(TimeStampModelMixin, models.Model):
- the transformation of the data from the data sources' schemata (e.g. ``osm2pgsql`` schema) to the OSMaxx schema
- the actual export to one specific GIS or navigation file format with one specific set of parameters
"""
from osmaxx.conversion.constants.statuses import RECEIVED, QUEUED, FINISHED, FAILED, STARTED, DEFERRED, FINAL_STATUSES, STATUS_CHOICES # noqa
from osmaxx.conversion.constants.status import RECEIVED, QUEUED, FINISHED, FAILED, STARTED, DEFERRED, FINAL_STATUSES, STATUS_CHOICES # noqa
INITIAL = 'initial'
INITIAL_CHOICE = (INITIAL, _('initial'))
STATUS_CHOICES = (INITIAL_CHOICE,) + STATUS_CHOICES
Expand Down
4 changes: 2 additions & 2 deletions osmaxx/excerptexport/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from django.views.generic.list import ListView

from osmaxx.contrib.auth.frontend_permissions import EmailRequiredMixin
from osmaxx.conversion.constants import statuses
from osmaxx.conversion.constants import status
from osmaxx.excerptexport.forms import ExcerptForm, ExistingForm
from osmaxx.excerptexport.models import Excerpt
from osmaxx.excerptexport.models import ExtractionOrder
Expand Down Expand Up @@ -70,7 +70,7 @@ def get_object(self, queryset=None):


class ExportsListMixin:
_filterable_statuses = frozenset({statuses.FINISHED, statuses.FAILED})
_filterable_statuses = frozenset({status.FINISHED, status.FAILED})

@property
def excerpt_ids(self):
Expand Down
2 changes: 1 addition & 1 deletion osmaxx/job_progress/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from requests import HTTPError

from osmaxx.api_client import ConversionApiClient
from osmaxx.conversion.constants.statuses import FINAL_STATUSES, FAILED
from osmaxx.conversion.constants.status import FINAL_STATUSES, FAILED
from osmaxx.excerptexport.models import Export
from osmaxx.utils.shortcuts import get_cached_or_set

Expand Down
2 changes: 1 addition & 1 deletion tests/conversion/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import osmaxx.conversion.constants.formats
from osmaxx.conversion.converters.converter_gis import detail_levels
from osmaxx.conversion.constants import coordinate_reference_systems as crs
from osmaxx.conversion.constants.statuses import STARTED, FAILED, FINISHED
from osmaxx.conversion.constants.status import STARTED, FAILED, FINISHED

format_list = osmaxx.conversion.constants.formats.FORMAT_DEFINITIONS.keys()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from osmaxx.conversion.constants.statuses import STARTED
from osmaxx.conversion.constants.status import STARTED


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/conversion/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from osmaxx.conversion.constants.statuses import STARTED, FAILED, FINISHED
from osmaxx.conversion.constants.status import STARTED, FAILED, FINISHED


@pytest.mark.django_db()
Expand Down
2 changes: 1 addition & 1 deletion tests/conversion/view_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from rest_framework.reverse import reverse

from osmaxx.conversion.constants.statuses import RECEIVED
from osmaxx.conversion.constants.status import RECEIVED

authenticated_access_urls = [
reverse('clipping_area-list'),
Expand Down
2 changes: 1 addition & 1 deletion tests/excerptexport/test_conversion_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from osmaxx.api_client import ConversionApiClient, API_client
from osmaxx.conversion.constants.formats import FGDB, SPATIALITE
from osmaxx.conversion.constants.statuses import RECEIVED
from osmaxx.conversion.constants.status import RECEIVED
from osmaxx.excerptexport.models import Excerpt, ExtractionOrder
from osmaxx.job_progress.views import tracker
from tests.test_helpers import vcr_explicit_path as vcr
Expand Down
2 changes: 1 addition & 1 deletion tests/excerptexport/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from hamcrest import assert_that, contains_inanyorder as contains_in_any_order

from osmaxx.conversion.constants.formats import GARMIN
from osmaxx.conversion.constants.statuses import FINISHED
from osmaxx.conversion.constants.status import FINISHED
from osmaxx.excerptexport import models


Expand Down
2 changes: 1 addition & 1 deletion tests/job_progress/test_job_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from osmaxx import excerptexport
from osmaxx.api_client.conversion_api_client import ConversionApiClient
from osmaxx.conversion.constants.statuses import STARTED, QUEUED, FINISHED, FAILED
from osmaxx.conversion.constants.status import STARTED, QUEUED, FINISHED, FAILED
from osmaxx.excerptexport.models.excerpt import Excerpt
from osmaxx.excerptexport.models.export import Export
from osmaxx.excerptexport.models.extraction_order import ExtractionOrder
Expand Down

0 comments on commit 04da18d

Please sign in to comment.