Skip to content

Commit

Permalink
Fix package structure of tests (#12997)
Browse files Browse the repository at this point in the history
* Fix package structure of tests

* fix style
  • Loading branch information
ofek committed Sep 21, 2022
1 parent 0b92164 commit ed547c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions datadog_checks_base/tests/base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# (C) Datadog, Inc. 2022-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
3 changes: 2 additions & 1 deletion datadog_checks_base/tests/base/utils/test_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ def test_tracked_method(aggregator, debug_stats_kwargs, disable_tracking):
aggregator.assert_metric(
"dd.hello.operation.error",
hostname=hostname,
tags=tags + ["operation:test_tracked_exception", "error:<class 'utils.test_tracking.MyException'>"],
tags=tags
+ ["operation:test_tracked_exception", "error:<class 'tests.base.utils.test_tracking.MyException'>"],
)

0 comments on commit ed547c1

Please sign in to comment.