Commit 00450d37 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

CI: Enable CI for Python 3

parent 63ada7c0
......@@ -28,6 +28,13 @@ py27_django111:
- "source ./py27_django111/bin/activate"
- "pip install -r ./tests/requirements-common.txt -U"
- "pip install -U 'Django>=1.11,<1.12'"
- "python ./runtests.py"
py34_django111:
script:
- "virtualenv-3.4 ./py34_django111"
- "source ./py34_django111/bin/activate"
- "pip install -r ./tests/requirements-common.txt -U"
- "pip install -U 'Django>=1.11,<1.12'"
- "coverage run ./runtests.py"
- "./coverage-report.py"
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from django.core import management
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
......@@ -115,7 +118,7 @@ class LdapTestCase(TestCase):
# Clear user attributes for this test
self.USER_MODEL.objects.all().update(first_name='', last_name='', email='')
stdout = StringIO.StringIO()
stdout = StringIO()
management.call_command('ldap_sync', exclude=['alice'], verbosity=3, stdout=stdout)
user = self.USER_MODEL.objects.get(username='test')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment