mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 08:07:55 -03:30
Blocks creation of Hosts, Groups, and IS for Smart Inventories
* Updated View unit tests * Refactored Validators * Validator Fix for Blocking
This commit is contained in:
@@ -116,8 +116,8 @@ class TestInventoryInventorySourcesUpdate:
|
||||
def exclude(self, **kwargs):
|
||||
return self.all()
|
||||
|
||||
Inventory = namedtuple('Inventory', ['inventory_sources'])
|
||||
obj = Inventory(inventory_sources=InventorySources())
|
||||
Inventory = namedtuple('Inventory', ['inventory_sources', 'kind'])
|
||||
obj = Inventory(inventory_sources=InventorySources(), kind='')
|
||||
|
||||
mock_request = mocker.MagicMock()
|
||||
mock_request.user.can_access.return_value = can_access
|
||||
|
||||
Reference in New Issue
Block a user