Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spotseeker_server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adi-ia
spotseeker_server
Commits
bb9c7258
Commit
bb9c7258
authored
6 years ago
by
Andy Summers
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-caching-test' into 'master'
Fix caching test See merge request
!5
parents
857fd2c6
a2e34358
No related branches found
No related tags found
1 merge request
!5
Fix caching test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spotseeker_server/test/spot_caching.py
+2
-1
2 additions, 1 deletion
spotseeker_server/test/spot_caching.py
with
2 additions
and
1 deletion
spotseeker_server/test/spot_caching.py
+
2
−
1
View file @
bb9c7258
from
django.test
import
TestCase
from
django.test
import
TestCase
,
override_settings
from
django.core.cache
import
cache
from
spotseeker_server.models
import
Spot
@override_settings
(
CACHES
=
{
'
default
'
:{
'
BACKEND
'
:
'
django.core.cache.backends.locmem.LocMemCache
'
}})
class
SpotCacheTest
(
TestCase
):
def
test_spot_caching
(
self
):
...
...
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