mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Remove some prints
This commit is contained in:
@@ -133,7 +133,6 @@ class UserHelper(object):
|
|||||||
print "N1"
|
print "N1"
|
||||||
return False
|
return False
|
||||||
rc = cls.can_user_administrate(user, obj)
|
rc = cls.can_user_administrate(user, obj)
|
||||||
print "N2: %s" % rc
|
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
class PrimordialModel(models.Model):
|
class PrimordialModel(models.Model):
|
||||||
|
|||||||
@@ -282,9 +282,8 @@ class ProjectsTest(BaseTest):
|
|||||||
other_creds = '/api/v1/users/%s/credentials/' % other.pk
|
other_creds = '/api/v1/users/%s/credentials/' % other.pk
|
||||||
team_creds = '/api/v1/teams/%s/credentials/' % team.pk
|
team_creds = '/api/v1/teams/%s/credentials/' % team.pk
|
||||||
|
|
||||||
print "ORGS=%s", other.organizations.all()
|
#for x in other.organizations.all():
|
||||||
for x in other.organizations.all():
|
# print x.admins.all()
|
||||||
print x.admins.all()
|
|
||||||
|
|
||||||
new_credentials = dict(
|
new_credentials = dict(
|
||||||
name = 'credential',
|
name = 'credential',
|
||||||
@@ -300,7 +299,6 @@ class ProjectsTest(BaseTest):
|
|||||||
self.post(other_creds, data=new_credentials, expect=401)
|
self.post(other_creds, data=new_credentials, expect=401)
|
||||||
self.post(other_creds, data=new_credentials, expect=401, auth=self.get_invalid_credentials())
|
self.post(other_creds, data=new_credentials, expect=401, auth=self.get_invalid_credentials())
|
||||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_super_credentials())
|
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_super_credentials())
|
||||||
print "TEST NOW"
|
|
||||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_normal_credentials())
|
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_normal_credentials())
|
||||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_other_credentials())
|
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_other_credentials())
|
||||||
self.post(other_creds, data=new_credentials, expect=403, auth=self.get_nobody_credentials())
|
self.post(other_creds, data=new_credentials, expect=403, auth=self.get_nobody_credentials())
|
||||||
|
|||||||
Reference in New Issue
Block a user