include awxkit CI in zuul runs

additionally, fix up some flake8 failures
This commit is contained in:
Ryan Petrello 2019-08-08 22:26:39 -04:00
parent 9616cc6f78
commit adaa4148c6
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
8 changed files with 38 additions and 31 deletions

View File

@ -376,6 +376,7 @@ test:
. $(VENV_BASE)/awx/bin/activate; \
fi; \
PYTHONDONTWRITEBYTECODE=1 py.test -p no:cacheprovider -n auto $(TEST_DIRS)
cd awxkit && $(VENV_BASE)/awx/bin/tox -re py3
awx-manage check_migrations --dry-run --check -n 'vNNN_missing_migration_file'
test_unit:

View File

@ -29,7 +29,8 @@ class User(HasCreate, base.Base):
random_title()),
email=kwargs.get(
'email',
'{}@example.com'.format(random_title(5, non_ascii=False)))
'{}@example.com'.format(random_title(5, non_ascii=False))
)
)
return payload

View File

@ -148,13 +148,16 @@ def format_human(output, fmt):
else:
output = [output]
return tabulate([
return tabulate(
[
dict(
(col, record.get(col, ''))
for col in column_names
)
for record in output
], headers='keys', tablefmt='rst'
],
headers='keys',
tablefmt='rst'
)

View File

@ -51,7 +51,8 @@ class CleanCommand(Command):
version = '0.1.0'
setup(name='awxkit',
setup(
name='awxkit',
version=version,
description='awx cli client',
packages=find_packages(exclude=['test']),

View File

@ -14,6 +14,7 @@ pytest-pythonpath
pytest-mock
pytest-timeout
pytest-xdist<1.28.0
tox # for awxkit
logutils
jupyter
matplotlib

View File

@ -18,4 +18,4 @@ exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory/ec2.py,awx/plugins
[flake8]
max-line-length=160
ignore=E201,E203,E221,E225,E231,E241,E251,E261,E265,E303,W291,W391,W293,E731,W504
exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory,awx/ui,awx/api/urls.py,awx/main/migrations,awx/main/tests/data,node_modules/,awx/projects/,tools/docker,awx/settings/local_*.py,installer/openshift/settings.py,build/,installer/
exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory,awx/ui,awx/api/urls.py,awx/main/migrations,awx/main/tests/data,node_modules/,awx/projects/,tools/docker,awx/settings/local_*.py,installer/openshift/settings.py,build/,installer/,awxkit/test