{
  "name": "fantastic-doodle",
  "scripts": {
  },
  "env": {
    "ALLOWED_HOSTS": {
      "description": "https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts",
      "value": "*.herokuapp.com"
    },
    "DJANGO_SETTINGS_MODULE": {
      "description": "Tell Django which settings you’re using (e.g. 'service.settings.production').",
      "value": "service.settings.production"
    },
    "SECRET_KEY": {
      "description": "This gets generated",
      "generator": "secret"
    }
  },
  "formation": {
  },
  "addons": [
    "heroku-postgresql",
    "heroku-redis"
  ],
  "buildpacks": [
    {
      "url": "heroku/python"
    }
  ],
  "environments": {
    "test": {
      "scripts": {
        "test": "python -Wd manage.py test --settings service.settings.test"
      }
    }
  }
}

{
  "name": "fantastic-doodle",
  "scripts": {
  },
  "env": {
    "ALLOWED_HOSTS": {
      "description": "https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts",
      "value": "*.herokuapp.com"
    },
    "DJANGO_SETTINGS_MODULE": {
      "description": "Tell Django which settings you’re using (e.g. 'service.settings.production').",
      "value": "service.settings.production"
    },
    "SECRET_KEY": {
      "description": "This gets generated",
      "generator": "secret"
    }
  },
  "formation": {
  },
  "addons": [
    "heroku-postgresql",
    "heroku-redis"
  ],
  "buildpacks": [
    {
      "url": "heroku/python"
    }
  ],
  "environments": {
    "test": {
      "scripts": {
        "test": "python -Wd manage.py test --settings service.settings.test"
      },
      "env": {
        "DJANGO_SETTINGS_MODULE": "service.settings.test"
      },
      "addons":[
        "heroku-postgresql",
        "heroku-redis"
      ]
    }
  }
}

Add test env and addons
Add test env and addons