mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
[test] Update org api
This commit is contained in:
parent
1504bab794
commit
d25216b0f2
@ -1,5 +1,7 @@
|
||||
import json
|
||||
from mock import patch
|
||||
import os
|
||||
import pytest
|
||||
|
||||
from seaserv import ccnet_api
|
||||
from django.core.urlresolvers import reverse
|
||||
@ -15,6 +17,8 @@ try:
|
||||
except ImportError:
|
||||
LOCAL_PRO_DEV_ENV = False
|
||||
|
||||
TRAVIS = 'TRAVIS' in os.environ
|
||||
|
||||
def remove_org(org_id):
|
||||
org_id = int(org_id)
|
||||
org = ccnet_api.get_org_by_id(org_id)
|
||||
@ -88,6 +92,7 @@ class AdminOrganizationsTest(BaseTestCase):
|
||||
self.assertEqual(403, resp.status_code)
|
||||
|
||||
|
||||
@pytest.mark.skipif(TRAVIS, reason="pro only")
|
||||
class AdminOrganizationTest(BaseTestCase):
|
||||
def setUp(self):
|
||||
org_name = randstring(6)
|
||||
|
Loading…
Reference in New Issue
Block a user