Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.web
Commits
190ea5e3
Commit
190ea5e3
authored
Apr 25, 2016
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[settings] Use in-memory sqlite database for cmdline tests
parent
3a7ce209
Pipeline
#1549
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
beat/web/settings/test.py
beat/web/settings/test.py
+3
-0
No files found.
beat/web/settings/test.py
View file @
190ea5e3
...
@@ -40,6 +40,9 @@ import sys
...
@@ -40,6 +40,9 @@ import sys
if
'-k'
in
sys
.
argv
or
'--keepdb'
in
sys
.
argv
:
if
'-k'
in
sys
.
argv
or
'--keepdb'
in
sys
.
argv
:
# keeps the SQLite3 database around to avoid re-running migrations
# keeps the SQLite3 database around to avoid re-running migrations
DATABASES
[
'default'
][
'TEST'
]
=
{
'NAME'
:
'test.sql3'
}
DATABASES
[
'default'
][
'TEST'
]
=
{
'NAME'
:
'test.sql3'
}
elif
'beat.cmdline'
in
sys
.
argv
:
# make it in-memory
DATABASES
[
'default'
][
'NAME'
]
=
':memory:'
PREFIX
=
os
.
path
.
join
(
os
.
getcwd
(),
'test_prefix'
)
PREFIX
=
os
.
path
.
join
(
os
.
getcwd
(),
'test_prefix'
)
ALGORITHMS_ROOT
=
os
.
path
.
join
(
PREFIX
,
'algorithms'
)
ALGORITHMS_ROOT
=
os
.
path
.
join
(
PREFIX
,
'algorithms'
)
...
...
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