Skip to content

Commit

Permalink
Consider integrations that have a test_e2e.py test file as having E…
Browse files Browse the repository at this point in the history
…2E tests (#16320)
  • Loading branch information
FlorentClarret authored Dec 1, 2023
1 parent 5be86ce commit 0ebab20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datadog_checks_dev/datadog_checks/dev/tooling/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,9 @@ def parse_version_parts(version):
def has_e2e(check):
for path, _, files in os.walk(get_test_directory(check)):
for fn in files:
if fn == 'test_e2e.py':
return True

if fn.startswith('test_') and fn.endswith('.py'):
with open(os.path.join(path, fn)) as test_file:
if 'pytest.mark.e2e' in test_file.read():
Expand Down

0 comments on commit 0ebab20

Please sign in to comment.