mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-20 13:36:45 +01:00
Chore: cache Github version check for 15 minutes (#11235)
This commit is contained in:
parent
6b55740f56
commit
b9aced07fb
2 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from django.core.cache import cache
|
||||
from pytest_httpx import HTTPXMock
|
||||
from rest_framework import status
|
||||
from rest_framework.test import APIClient
|
||||
|
|
@ -8,6 +9,9 @@ from paperless import version
|
|||
class TestApiRemoteVersion:
|
||||
ENDPOINT = "/api/remote_version/"
|
||||
|
||||
def setup_method(self):
|
||||
cache.clear()
|
||||
|
||||
def test_remote_version_enabled_no_update_prefix(
|
||||
self,
|
||||
rest_api_client: APIClient,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue