Patches from tinkering with tests and default to devel version (#8)

This causes make install_collection to avoid templating the version
  so that it can still be used as-is in development
This commit is contained in:
Alan Rominger
2020-05-18 08:51:39 -04:00
committed by GitHub
parent b904ad68a6
commit 22cdc129ad
9 changed files with 43 additions and 25 deletions

View File

@@ -3,8 +3,6 @@ __metaclass__ = type
import pytest
from unittest import mock
from awx.main.models import Project
@@ -18,9 +16,9 @@ def test_create_project(run_module, admin_user, organization, silence_warning):
wait=False,
scm_update_cache_timeout=5
), admin_user)
silence_warning.assert_has_calls(
[mock.call('scm_update_cache_timeout will be ignored since scm_update_on_launch '
'was not set to true')])
silence_warning.assert_called_once_with(
'scm_update_cache_timeout will be ignored since scm_update_on_launch '
'was not set to true')
assert result.pop('changed', None), result