mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 07:48:39 -05:00
add period to active job conflict error
Rename StateConflict to ActiveJobConflict and used shared message inside of that exception class.
This commit is contained in:
committed by
Matthew Jones
parent
f93506fe2c
commit
5380d57ce8
@@ -13,7 +13,7 @@ from awx.main.access import (
|
||||
InventoryUpdateAccess,
|
||||
CustomInventoryScriptAccess,
|
||||
ScheduleAccess,
|
||||
StateConflict
|
||||
ActiveJobConflict
|
||||
)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ from awx.main.access import (
|
||||
def test_running_job_protection(inventory, admin_user):
|
||||
AdHocCommand.objects.create(inventory=inventory, status='running')
|
||||
access = InventoryAccess(admin_user)
|
||||
with pytest.raises(StateConflict):
|
||||
with pytest.raises(ActiveJobConflict):
|
||||
access.can_delete(inventory)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user