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
848f2146
authored
Sep 24, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working selenium setup
parent
f5f16c94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
5 deletions
+41
-5
circle/circle/settings/selenium_test.py
+41
-5
No files found.
circle/circle/settings/selenium_test.py
View file @
848f2146
...
...
@@ -14,12 +14,48 @@
#
# You should have received a copy of the GNU General Public License along
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
test
import
*
# noqa
import
os
# noqa
from
.base
import
*
# noqa
# flake8: noqa
os
.
environ
[
'REUSE_DB'
]
=
"1"
os
.
environ
[
'DJANGO_TEST_DB_NAME'
]
=
"circle"
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.'
+
get_env_variable
(
'DJANG_DB_TYPE'
,
'postgresql_psycopg2'
),
'NAME'
:
get_env_variable
(
'DJANGO_DB_NAME'
,
'circle'
),
'TEST_NAME'
:
get_env_variable
(
'DJANGO_TEST_DB_NAME'
,
'circle'
),
'USER'
:
get_env_variable
(
'DJANGO_DB_USER'
,
'circle'
),
'PASSWORD'
:
get_env_variable
(
'DJANGO_DB_PASSWORD'
),
'HOST'
:
get_env_variable
(
'DJANGO_DB_HOST'
,
''
),
'PORT'
:
get_env_variable
(
'DJANGO_DB_PORT'
,
''
),
}
}
SOUTH_TESTS_MIGRATE
=
False
INSTALLED_APPS
+=
(
'acl.tests'
,
'django_nose'
,
)
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
########## IN-MEMORY TEST DATABASE
path_to_selenium_test
=
os
.
path
.
expanduser
(
'~/circle/circle/dashboard/tests/selenium'
)
NOSE_ARGS
=
[
'--with-doctest'
,
'--with-selenium-driver'
,
'--selenium-driver=firefox'
,
'-w
%
s'
%
path_to_selenium_test
]
NOSE_ARGS
=
[
'--stop'
,
'--with-doctest'
,
'--with-selenium-driver'
,
'--selenium-driver=firefox'
,
'-w
%
s'
%
path_to_selenium_test
]
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.MD5PasswordHasher'
]
CACHES
=
{
'default'
:
{
'BACKEND'
:
'django.core.cache.backends.dummy.DummyCache'
}
}
LOGGING
[
'loggers'
][
'djangosaml2'
]
=
{
'handlers'
:
[
'console'
],
'level'
:
'CRITICAL'
}
level
=
environ
.
get
(
'LOGLEVEL'
,
'CRITICAL'
)
LOGGING
[
'handlers'
][
'console'
]
=
{
'level'
:
level
,
'class'
:
'logging.StreamHandler'
,
'formatter'
:
'simple'
}
for
i
in
LOCAL_APPS
:
LOGGING
[
'loggers'
][
i
]
=
{
'handlers'
:
[
'console'
],
'level'
:
level
}
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