Skip to content

Commit c346564

Browse files
AlanCodingdmzoneill
authored andcommitted
Add test for utils method is_testing
1 parent b7b7bfa commit c346564

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

awx/main/tests/unit/utils/test_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def test_get_model_for_valid_type(model_type, model_class):
121121
assert common.get_model_for_type(model_type) == model_class
122122

123123

124+
def test_is_testing():
125+
assert common.is_testing() is True
126+
127+
124128
@pytest.mark.parametrize("model_type,model_class", [(name, cls) for cls, name in TEST_MODELS])
125129
def test_get_capacity_type(model_type, model_class):
126130
if model_type in ('job', 'ad_hoc_command', 'inventory_update', 'job_template'):

0 commit comments

Comments
 (0)