mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
12 lines
349 B
Python
12 lines
349 B
Python
from awx.main.models import Job
|
|
|
|
import pytest
|
|
|
|
@pytest.mark.django_db
|
|
def test_orphan_unified_job_creation(instance, inventory):
|
|
job = Job.objects.create(job_template=None, inventory=inventory, name='hi world')
|
|
job2 = job.copy()
|
|
assert job2.job_template is None
|
|
assert job2.inventory == inventory
|
|
assert job2.name == 'hi world'
|