Skip to content

Commit

Permalink
Add test for utils method is_testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Feb 28, 2024
1 parent b3466d4 commit 99c203e
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
Expand Up @@ -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'):
Expand Down

0 comments on commit 99c203e

Please sign in to comment.