fix unit tests

This commit is contained in:
Seth Foster
2021-04-29 12:49:31 -04:00
parent 7a63785255
commit 6911a59f39
2 changed files with 3 additions and 2 deletions

View File

@@ -169,7 +169,8 @@ def test_completeness(collection_import, request, admin_user, job_template, exec
for root, dirs, files in os.walk(module_directory):
if root == module_directory:
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]
option_comparison[module_name] = {
'endpoint': 'N/A',

View File

@@ -10,7 +10,7 @@ from requests.models import Response
from unittest import mock
awx_name = 'AWX'
tower_name = 'Red Hat Ansible Tower'
tower_name = 'Red Hat Automation Controller'
ping_version = '1.2.3'