Skip to content

Commit

Permalink
Add test for utils method is_testing
Browse files Browse the repository at this point in the history
AlanCoding authored and dmzoneill committed Mar 5, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent b7b7bfa commit a4a2fab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions awx/main/tests/unit/utils/test_common.py
Original file line number Diff line number Diff line change
@@ -121,6 +121,10 @@ def test_get_model_for_valid_type(model_type, model_class):
assert common.get_model_for_type(model_type) == model_class


def test_is_testing():
assert common.is_testing() is True


@pytest.mark.parametrize("model_type,model_class", [(name, cls) for cls, name in TEST_MODELS])
def test_get_capacity_type(model_type, model_class):
if model_type in ('job', 'ad_hoc_command', 'inventory_update', 'job_template'):

0 comments on commit a4a2fab

Please sign in to comment.