Debian Codegraph @

test/integration/targets/plugin_namespace/test_plugins/test_test.py

raw
1 from __future__ import annotations
2
3 import re
4
5
6 def test_name_ok(value):
7 # test names include a unique hash value to prevent shadowing of other plugins
8 return bool(re.match(r'^ansible\.plugins\.test\.test_test_[0-9]+$', __name__))
9
10
11 class TestModule:
12 def tests(self):
13 return {
14 'test_name_ok': test_name_ok,
15 }