Skip to content

Commit

Permalink
Add a unit test with a typo in an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed Jul 8, 2022
1 parent 5e9e369 commit 1ae00a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions datadog_checks_base/tests/base/checks/test_agent_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,21 @@ def __init__(self, **kwargs):
[],
id="using an alias",
),
pytest.param(
{
"field": "value",
"schem": "my_schema",
},
BaseModelTest(field="my_field", schema_="the_schema"),
[
(
"Detected potential typo in configuration option in test/instance section: "
"`schem`. Did you mean schema?"
),
],
["schem"],
id="typo in an alias",
),
pytest.param(
{
"field": "value",
Expand Down

0 comments on commit 1ae00a2

Please sign in to comment.