Adds unit tests for network_ui

* Covers 100% of non-migration python lines of code
This commit is contained in:
Ben Thomasson
2018-04-04 12:56:58 -04:00
parent da5781bfc9
commit af4367b222
10 changed files with 812 additions and 28 deletions

View File

@@ -372,7 +372,8 @@ awx-link:
sed -i "s/placeholder/$(shell git describe --long | sed 's/\./\\./g')/" /awx_devel/awx.egg-info/PKG-INFO
cp /tmp/awx.egg-link /venv/awx/lib/python2.7/site-packages/awx.egg-link
TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests awx/network_ui/tests/unit
# Run all API unit tests.
test:
@if [ "$(VENV_BASE)" ]; then \
@@ -386,7 +387,7 @@ test_unit:
@if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/awx/bin/activate; \
fi; \
py.test awx/main/tests/unit awx/conf/tests/unit awx/sso/tests/unit
py.test awx/main/tests/unit awx/conf/tests/unit awx/sso/tests/unit awx/network_ui/tests/unit
test_ansible:
@if [ "$(VENV_BASE)" ]; then \