mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
add LOCAL_PRO_DEV_ENV when test generet event type
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
from seahub.test_utils import BaseTestCase
|
||||
from seahub.utils import generate_file_audit_event_type
|
||||
|
||||
try:
|
||||
from seahub.settings import LOCAL_PRO_DEV_ENV
|
||||
except ImportError:
|
||||
LOCAL_PRO_DEV_ENV = False
|
||||
|
||||
class Events():
|
||||
|
||||
def __init__(self, etype, device):
|
||||
@@ -12,6 +17,9 @@ class GenerateFileAuditEventTypeTest(BaseTestCase):
|
||||
|
||||
def test_generate_file_audit_event_type(self):
|
||||
|
||||
if not LOCAL_PRO_DEV_ENV:
|
||||
return
|
||||
|
||||
event_type_device = {
|
||||
'file-download-web': '',
|
||||
'file-download-share-link': '',
|
||||
|
Reference in New Issue
Block a user