Better upwell messaging for everyone and show the upsell for organization admins
This commit is contained in:
parent
d12a53186a
commit
dbb234c76c
5 changed files with 62 additions and 64 deletions
|
@ -128,18 +128,18 @@ class TestLoggedInUser(ApiTestCase):
|
|||
assert json['username'] == READ_ACCESS_USER
|
||||
|
||||
|
||||
class TestGetUserPrivateCount(ApiTestCase):
|
||||
class TestGetUserPrivateAllowed(ApiTestCase):
|
||||
def test_nonallowed(self):
|
||||
self.login(READ_ACCESS_USER)
|
||||
json = self.getJsonResponse('api.get_user_private_count')
|
||||
json = self.getJsonResponse('api.get_user_private_allowed')
|
||||
assert json['privateCount'] == 0
|
||||
assert json['reposAllowed'] == 0
|
||||
assert not json['privateAllowed']
|
||||
|
||||
def test_allowed(self):
|
||||
self.login(ADMIN_ACCESS_USER)
|
||||
json = self.getJsonResponse('api.get_user_private_count')
|
||||
json = self.getJsonResponse('api.get_user_private_allowed')
|
||||
assert json['privateCount'] == 6
|
||||
assert json['reposAllowed'] > 0
|
||||
assert json['privateAllowed']
|
||||
|
||||
|
||||
class TestConvertToOrganization(ApiTestCase):
|
||||
|
|
Reference in a new issue