mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix unit tests
This commit is contained in:
@@ -169,7 +169,8 @@ def test_completeness(collection_import, request, admin_user, job_template, exec
|
|||||||
for root, dirs, files in os.walk(module_directory):
|
for root, dirs, files in os.walk(module_directory):
|
||||||
if root == module_directory:
|
if root == module_directory:
|
||||||
for filename in files:
|
for filename in files:
|
||||||
if re.match('^tower_.*.py$', filename):
|
# must begin with a letter a-z, and end in .py
|
||||||
|
if re.match('^[a-z].*\.py$', filename):
|
||||||
module_name = filename[:-3]
|
module_name = filename[:-3]
|
||||||
option_comparison[module_name] = {
|
option_comparison[module_name] = {
|
||||||
'endpoint': 'N/A',
|
'endpoint': 'N/A',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from requests.models import Response
|
|||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
awx_name = 'AWX'
|
awx_name = 'AWX'
|
||||||
tower_name = 'Red Hat Ansible Tower'
|
tower_name = 'Red Hat Automation Controller'
|
||||||
ping_version = '1.2.3'
|
ping_version = '1.2.3'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user