Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fountain
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
urz-django
fountain
Commits
00450d37
Commit
00450d37
authored
Apr 25, 2017
by
Daniel Klaffenbach
🐍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Enable CI for Python 3
parent
63ada7c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
.gitlab-ci.yml
.gitlab-ci.yml
+8
-1
tests/tests.py
tests/tests.py
+5
-2
No files found.
.gitlab-ci.yml
View file @
00450d37
...
...
@@ -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"
tests/tests.py
View file @
00450d37
# -*- 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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment