Browse Source

Organize imports using isort.

pull/10/head
Pēteris Caune 9 years ago
parent
commit
947f686c61
27 changed files with 10 additions and 36 deletions
  1. +0
    -3
      hc/accounts/admin.py
  2. +0
    -1
      hc/accounts/tests/test_login.py
  3. +0
    -1
      hc/accounts/urls.py
  4. +2
    -2
      hc/accounts/views.py
  5. +0
    -1
      hc/api/admin.py
  6. +2
    -1
      hc/api/decorators.py
  7. +3
    -4
      hc/api/models.py
  8. +0
    -1
      hc/api/tests/test_email_webhook.py
  9. +1
    -2
      hc/api/tests/test_notify.py
  10. +0
    -1
      hc/api/tests/test_ping.py
  11. +2
    -3
      hc/api/tests/test_sendalerts.py
  12. +0
    -1
      hc/api/tests/test_status.py
  13. +0
    -1
      hc/api/urls.py
  14. +0
    -1
      hc/api/views.py
  15. +0
    -1
      hc/front/forms.py
  16. +0
    -1
      hc/front/tests/test_add_channel.py
  17. +0
    -1
      hc/front/tests/test_add_check.py
  18. +0
    -1
      hc/front/tests/test_channel_checks.py
  19. +0
    -1
      hc/front/tests/test_log.py
  20. +0
    -1
      hc/front/tests/test_my_checks.py
  21. +0
    -1
      hc/front/tests/test_remove_channel.py
  22. +0
    -1
      hc/front/tests/test_remove_check.py
  23. +0
    -1
      hc/front/tests/test_update_channel.py
  24. +0
    -1
      hc/front/tests/test_update_name.py
  25. +0
    -1
      hc/front/tests/test_update_timeout.py
  26. +0
    -1
      hc/front/tests/test_verify_email.py
  27. +0
    -1
      hc/front/views.py

+ 0
- 3
hc/accounts/admin.py View File

@ -1,9 +1,6 @@
from django.contrib import admin
# Register your models here.
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from hc.api.models import Channel, Check


+ 0
- 1
hc/accounts/tests/test_login.py View File

@ -1,7 +1,6 @@
from django.contrib.auth.models import User
from django.core import mail
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/accounts/urls.py View File

@ -1,5 +1,4 @@
from django.conf.urls import url
from hc.accounts import views
urlpatterns = [


+ 2
- 2
hc/accounts/views.py View File

@ -1,13 +1,13 @@
import uuid
from django.conf import settings
from django.contrib.auth import login as auth_login
from django.contrib.auth import logout as auth_logout
from django.contrib.auth import authenticate
from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.http import HttpResponseBadRequest
from django.shortcuts import redirect, render
from hc.accounts.forms import EmailForm
from hc.api.models import Channel, Check
from hc.lib import emails


+ 0
- 1
hc/api/admin.py View File

@ -1,5 +1,4 @@
from django.contrib import admin
from hc.api.models import Channel, Check, Notification, Ping


+ 2
- 1
hc/api/decorators.py View File

@ -1,6 +1,7 @@
import uuid
from functools import wraps
from django.http import HttpResponseBadRequest
import uuid
def uuid_or_400(f):


+ 3
- 4
hc/api/models.py View File

@ -1,18 +1,17 @@
# coding: utf-8
from datetime import timedelta as td
import hashlib
import json
import uuid
from datetime import timedelta as td
import requests
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db import models
from django.template.loader import render_to_string
from django.utils import timezone
import requests
from hc.lib import emails
STATUSES = (


+ 0
- 1
hc/api/tests/test_email_webhook.py View File

@ -1,7 +1,6 @@
import json
from django.test import TestCase
from hc.api.models import Check, Ping


+ 1
- 2
hc/api/tests/test_notify.py View File

@ -1,11 +1,10 @@
from django.contrib.auth.models import User
from django.core import mail
from django.test import TestCase
from hc.api.models import Channel, Check, Notification
from mock import patch
from requests.exceptions import ReadTimeout
from hc.api.models import Channel, Check, Notification
class NotifyTestCase(TestCase):


+ 0
- 1
hc/api/tests/test_ping.py View File

@ -1,5 +1,4 @@
from django.test import Client, TestCase
from hc.api.models import Check, Ping


+ 2
- 3
hc/api/tests/test_sendalerts.py View File

@ -1,11 +1,10 @@
from datetime import datetime
from mock import patch
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check
from hc.api.management.commands.sendalerts import handle_many
from hc.api.models import Check
from mock import patch
class SendAlertsTestCase(TestCase):


+ 0
- 1
hc/api/tests/test_status.py View File

@ -1,5 +1,4 @@
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/api/urls.py View File

@ -1,5 +1,4 @@
from django.conf.urls import url
from hc.api import views
urlpatterns = [


+ 0
- 1
hc/api/views.py View File

@ -4,7 +4,6 @@ from django.contrib.humanize.templatetags.humanize import naturaltime
from django.http import HttpResponse, HttpResponseBadRequest
from django.utils import timezone
from django.views.decorators.csrf import csrf_exempt
from hc.api.decorators import uuid_or_400
from hc.api.models import Check, Ping


+ 0
- 1
hc/front/forms.py View File

@ -1,5 +1,4 @@
from django import forms
from hc.api.models import Channel


+ 0
- 1
hc/front/tests/test_add_channel.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel


+ 0
- 1
hc/front/tests/test_add_check.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_channel_checks.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel


+ 0
- 1
hc/front/tests/test_log.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_my_checks.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_remove_channel.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel


+ 0
- 1
hc/front/tests/test_remove_check.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_update_channel.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel, Check


+ 0
- 1
hc/front/tests/test_update_name.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_update_timeout.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Check


+ 0
- 1
hc/front/tests/test_verify_email.py View File

@ -1,6 +1,5 @@
from django.contrib.auth.models import User
from django.test import TestCase
from hc.api.models import Channel


+ 0
- 1
hc/front/views.py View File

@ -5,7 +5,6 @@ from django.contrib.auth.decorators import login_required
from django.http import HttpResponseBadRequest, HttpResponseForbidden
from django.shortcuts import get_object_or_404, redirect, render
from django.utils import timezone
from hc.api.decorators import uuid_or_400
from hc.api.models import Channel, Check, Ping
from hc.front.forms import AddChannelForm, TimeoutForm


Loading…
Cancel
Save