Fixes to get flake8 and unit/functional tests passing.

This commit is contained in:
Chris Church
2016-09-18 19:11:29 -04:00
parent f3a8eb9daf
commit b7a6aa01a3
8 changed files with 11 additions and 52 deletions

View File

@@ -2,7 +2,6 @@
# All Rights Reserved.
import sys
import socket
from django.db import models
@@ -27,7 +26,7 @@ class InstanceManager(models.Manager):
"""Return the currently active instance."""
# If we are running unit tests, return a stub record.
if len(sys.argv) >= 2 and sys.argv[1] == 'test':
return self.model(id=1, primary=True,
return self.model(id=1,
hostname='localhost',
uuid='00000000-0000-0000-0000-000000000000')