Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c213040
authored
May 08, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: fix selenium tests
parent
0ca074b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
circle/circle/settings/selenium_test.py
+20
-0
requirements/base.txt
+1
-1
No files found.
circle/circle/settings/selenium_test.py
View file @
9c213040
...
@@ -19,6 +19,26 @@ import os
...
@@ -19,6 +19,26 @@ import os
from
.base
import
*
# noqa
from
.base
import
*
# noqa
# fix https://github.com/django-nose/django-nose/issues/197
# AttributeError: 'module' object has no attribute 'commit_unless_managed'
# TypeError: _skip_create_test_db() got an unexpected keyword argument 'keepdb'
from
django.db
import
transaction
from
django_nose
import
runner
def
_skip_create_test_db
(
self
,
verbosity
=
1
,
autoclobber
=
False
,
serialize
=
True
,
keepdb
=
True
):
return
old_skip_create_test_db
(
self
,
verbosity
=
verbosity
,
autoclobber
=
autoclobber
,
serialize
=
serialize
)
setattr
(
transaction
,
"commit_unless_managed"
,
lambda
using
:
using
)
old_skip_create_test_db
=
runner
.
_skip_create_test_db
setattr
(
runner
,
"_skip_create_test_db"
,
_skip_create_test_db
)
os
.
environ
[
'REUSE_DB'
]
=
"1"
os
.
environ
[
'REUSE_DB'
]
=
"1"
os
.
environ
[
'DJANGO_TEST_DB_NAME'
]
=
"circle"
os
.
environ
[
'DJANGO_TEST_DB_NAME'
]
=
"circle"
DATABASES
=
{
DATABASES
=
{
...
...
requirements/base.txt
View file @
9c213040
...
@@ -13,7 +13,7 @@ django-crispy-forms==1.4.0
...
@@ -13,7 +13,7 @@ django-crispy-forms==1.4.0
django-model-utils==2.2
django-model-utils==2.2
djangosaml2==0.13.0
djangosaml2==0.13.0
django-sizefield==0.7
django-sizefield==0.7
django-sshkey==2.2.0
git+https://git.ik.bme.hu/circle/django-sshkey.git
django-statici18n==1.1.3
django-statici18n==1.1.3
django-tables2==0.16.0
django-tables2==0.16.0
django-taggit==0.14.0
django-taggit==0.14.0
...
...
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