mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
add license creation to tests
This commit is contained in:
parent
d35259c807
commit
17500859f4
@ -19,6 +19,8 @@ class ActivityStreamTest(BaseTest):
|
||||
def setUp(self):
|
||||
super(ActivityStreamTest, self).setUp()
|
||||
self.setup_instances()
|
||||
self.create_test_license_file()
|
||||
# TODO: Test non-enterprise license
|
||||
self.setup_users()
|
||||
self.org_created = self.post(reverse('api:organization_list'), dict(name='test org', description='test descr'), expect=201, auth=self.get_super_credentials())
|
||||
|
||||
|
@ -911,6 +911,8 @@ class AdHocCommandApiTest(BaseAdHocCommandTest):
|
||||
|
||||
@mock.patch('awx.main.tasks.BaseTask.run_pexpect', side_effect=run_pexpect_mock)
|
||||
def test_ad_hoc_command_activity_stream(self, ignore):
|
||||
# TODO: Test non-enterprise license
|
||||
self.create_test_license_file()
|
||||
with self.current_user('admin'):
|
||||
response = self.run_test_ad_hoc_command()
|
||||
|
||||
|
@ -1020,6 +1020,8 @@ class JobTransactionTest(BaseJobTestMixin, django.test.LiveServerTestCase):
|
||||
class JobTemplateSurveyTest(BaseJobTestMixin, django.test.TestCase):
|
||||
def setUp(self):
|
||||
super(JobTemplateSurveyTest, self).setUp()
|
||||
# TODO: Test non-enterprise license
|
||||
self.create_test_license_file()
|
||||
|
||||
def tearDown(self):
|
||||
super(JobTemplateSurveyTest, self).tearDown()
|
||||
|
@ -13,6 +13,8 @@ class OrganizationsTest(BaseTest):
|
||||
def setUp(self):
|
||||
super(OrganizationsTest, self).setUp()
|
||||
self.setup_instances()
|
||||
# TODO: Test non-enterprise license
|
||||
self.create_test_license_file()
|
||||
self.setup_users()
|
||||
|
||||
self.organizations = self.make_organizations(self.super_django_user, 10)
|
||||
|
Loading…
Reference in New Issue
Block a user