mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Disable DEBUG for unittests
This commit is contained in:
parent
f0fe6673f2
commit
c45926411c
@ -862,7 +862,6 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest):
|
|||||||
self.assertEqual(new_inv.groups.count(), 0)
|
self.assertEqual(new_inv.groups.count(), 0)
|
||||||
os.chdir(os.path.join(os.path.dirname(__file__), 'data'))
|
os.chdir(os.path.join(os.path.dirname(__file__), 'data'))
|
||||||
inv_file = 'large_ec2_inventory.py'
|
inv_file = 'large_ec2_inventory.py'
|
||||||
settings.DEBUG = True
|
|
||||||
result, stdout, stderr = self.run_command('inventory_import',
|
result, stdout, stderr = self.run_command('inventory_import',
|
||||||
inventory_id=new_inv.pk,
|
inventory_id=new_inv.pk,
|
||||||
source=inv_file)
|
source=inv_file)
|
||||||
@ -906,7 +905,6 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest):
|
|||||||
new_inv = self.organizations[0].inventories.create(name='largeinv')
|
new_inv = self.organizations[0].inventories.create(name='largeinv')
|
||||||
self.assertEqual(new_inv.hosts.count(), 0)
|
self.assertEqual(new_inv.hosts.count(), 0)
|
||||||
self.assertEqual(new_inv.groups.count(), 0)
|
self.assertEqual(new_inv.groups.count(), 0)
|
||||||
settings.DEBUG = True
|
|
||||||
nhosts = 2000
|
nhosts = 2000
|
||||||
# Test initial import into empty inventory.
|
# Test initial import into empty inventory.
|
||||||
self._check_largeinv_import(new_inv, nhosts, 0)
|
self._check_largeinv_import(new_inv, nhosts, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user