Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luca (strifel)
uffd
Commits
9d2a7289
Commit
9d2a7289
authored
3 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Switched tests from tmpfile to in-memory databases
parent
3abcbf20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/utils.py
+1
-3
1 addition, 3 deletions
tests/utils.py
with
1 addition
and
3 deletions
tests/utils.py
+
1
−
3
View file @
9d2a7289
...
...
@@ -49,13 +49,12 @@ class UffdTestCase(unittest.TestCase):
'
password
'
:
self
.
test_data
.
get
(
user
).
get
(
'
password
'
)},
follow_redirects
=
True
)
def
setUp
(
self
):
self
.
dir
=
tempfile
.
mkdtemp
()
# It would be far better to create a minimal app here, but since the
# session module depends on almost everything else, that is not really feasable
config
=
{
'
TESTING
'
:
True
,
'
DEBUG
'
:
True
,
'
SQLALCHEMY_DATABASE_URI
'
:
'
sqlite:///
%s/db.sqlite
'
%
self
.
dir
,
'
SQLALCHEMY_DATABASE_URI
'
:
'
sqlite:///
:memory:
'
,
'
SECRET_KEY
'
:
'
DEBUGKEY
'
,
'
LDAP_SERVICE_MOCK
'
:
True
,
'
MAIL_SKIP_SEND
'
:
True
,
...
...
@@ -117,4 +116,3 @@ class UffdTestCase(unittest.TestCase):
def
tearDown
(
self
):
self
.
client
.
__exit__
(
None
,
None
,
None
)
shutil
.
rmtree
(
self
.
dir
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment