Skip to content

Commit

Permalink
Update test_graphql_query.py
Browse files Browse the repository at this point in the history
Moves to `add_to_facts`
  • Loading branch information
jvanderaa authored Sep 16, 2021
1 parent 7d8a5ed commit 910d180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/action/test_graphql_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def test_setup_api_error_incorrect_validate_certs(nautobot_valid_args):
assert str(exc.value) == "validate_certs must be a boolean"


def test_setup_api_error_incorrect_populate_root(nautobot_valid_args):
nautobot_valid_args["populate_root"] = "Hi"
def test_setup_api_error_incorrect_add_to_facts(nautobot_valid_args):
nautobot_valid_args["add_to_facts"] = "Hi"
with pytest.raises(AnsibleError) as exc:
test_class = nautobot_action_graphql(args=nautobot_valid_args)

assert str(exc.value) == "populate_root must be a boolean"
assert str(exc.value) == "add_to_facts must be a boolean"


def test_query_api_query_error_none(nautobot_valid_args):
Expand Down

0 comments on commit 910d180

Please sign in to comment.