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:
AlanCoding
2017-10-06 13:23:25 -04:00
committed by Matthew Jones
parent f93506fe2c
commit 5380d57ce8
2 changed files with 17 additions and 18 deletions
@@ -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)