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

Commit

Permalink
refactoring: #845 add and use convenience import for module "status"
Browse files Browse the repository at this point in the history
  • Loading branch information
das-g committed May 12, 2017
1 parent d8560d9 commit e2a518b
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions osmaxx/conversion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .constants import output_format
from .constants import output_format, status

default_app_config = 'osmaxx.conversion.apps.ConversionConfig'

__all__ = ['default_app_config', 'output_format']
__all__ = ['default_app_config', 'output_format', 'status']
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 import status
from osmaxx.conversion import status

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 import convert
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 import status
from osmaxx.conversion import status


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 @@ -9,7 +9,7 @@
from rest_framework.reverse import reverse

from osmaxx.conversion import output_format
from osmaxx.conversion.constants import status
from osmaxx.conversion import status
from osmaxx.excerptexport._settings import RESULT_FILE_AVAILABILITY_DURATION, EXTRACTION_PROCESSING_TIMEOUT_TIMEDELTA

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion 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 status
from osmaxx.conversion import status
from osmaxx.excerptexport.forms import ExcerptForm, ExistingForm
from osmaxx.excerptexport.models import Excerpt
from osmaxx.excerptexport.models import ExtractionOrder
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 import status
from osmaxx.conversion import status
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 @@
from osmaxx.conversion import output_format
from osmaxx.conversion.converters.converter_gis import detail_levels
from osmaxx.conversion.constants import coordinate_reference_systems as crs
from osmaxx.conversion.constants import status
from osmaxx.conversion import status

format_list = output_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 import status
from osmaxx.conversion import status


@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 import status
from osmaxx.conversion import status


@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 import status
from osmaxx.conversion import status

authenticated_access_urls = [
reverse('clipping_area-list'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import requests

from osmaxx.api_client import ConversionApiClient
from osmaxx.conversion.constants import status
from osmaxx.conversion import status


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

from django.utils import timezone

from osmaxx.conversion.constants import status
from osmaxx.conversion import status
from osmaxx.excerptexport.models.export import TimeStampModelMixin
from osmaxx.excerptexport._settings import EXTRACTION_PROCESSING_TIMEOUT_TIMEDELTA

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.conversion import output_format
from osmaxx.api_client import ConversionApiClient, API_client
from osmaxx.conversion.constants import status
from osmaxx.conversion import status
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 import output_format
from osmaxx.conversion.constants import status
from osmaxx.conversion import status
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 import status
from osmaxx.conversion import status
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 e2a518b

Please sign in to comment.