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
9 years ago
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
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
[
'DJANGO_TEST_DB_NAME'
]
=
"circle"
DATABASES
=
{
...
...
This diff is collapsed.
Click to expand it.
requirements/base.txt
View file @
9c213040
...
...
@@ -13,7 +13,7 @@ django-crispy-forms==1.4.0
django-model-utils==2.2
djangosaml2==0.13.0
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-tables2==0.16.0
django-taggit==0.14.0
...
...
This diff is collapsed.
Click to expand it.
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