mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Merge pull request #1760 from AlanCoding/fix_tests_25
Fix tests fallout from 2.5 upgrade
This commit is contained in:
2
Makefile
2
Makefile
@@ -369,7 +369,7 @@ check: flake8 pep8 # pyflakes pylint
|
|||||||
|
|
||||||
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
|
||||||
# Run all API unit tests.
|
# Run all API unit tests.
|
||||||
test: test_ansible
|
test:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/awx/bin/activate; \
|
. $(VENV_BASE)/awx/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|||||||
@@ -84,13 +84,6 @@ class TestControlledBySCM():
|
|||||||
|
|
||||||
inv_src.clean_overwrite_vars()
|
inv_src.clean_overwrite_vars()
|
||||||
|
|
||||||
def test_clean_overwrite_vars_invalid(self):
|
|
||||||
inv_src = InventorySource(overwrite_vars=False,
|
|
||||||
source='scm')
|
|
||||||
|
|
||||||
with pytest.raises(ValidationError):
|
|
||||||
inv_src.clean_overwrite_vars()
|
|
||||||
|
|
||||||
def test_clean_source_path_valid(self):
|
def test_clean_source_path_valid(self):
|
||||||
inv_src = InventorySource(source_path='/not_real/',
|
inv_src = InventorySource(source_path='/not_real/',
|
||||||
source='scm')
|
source='scm')
|
||||||
|
|||||||
Reference in New Issue
Block a user