id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
13,700
test_hello.py
ansible_ansible/test/integration/targets/ansible-test-units/ansible_collections/ns/col/tests/unit/plugins/modules/test_hello.py
from __future__ import annotations from .....plugins.modules.hello import say_hello def test_say_hello(): assert say_hello('Ansibull') == dict(message='Hello Ansibull')
176
Python
.py
4
41.25
66
0.739645
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,701
test_my_util.py
ansible_ansible/test/integration/targets/ansible-test-units/ansible_collections/ns/col/tests/unit/plugins/module_utils/test_my_util.py
from __future__ import annotations from .....plugins.module_utils.my_util import hello def test_hello(): assert hello('Ansibull') == 'Hello Ansibull'
157
Python
.py
4
36.5
51
0.733333
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,702
hello.py
ansible_ansible/test/integration/targets/ansible-test-units/ansible_collections/ns/col/plugins/modules/hello.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: hello short_description: Hello test module description: Hello test module. options: name: description: Name to say hello to. type: str...
791
Python
.py
33
20.424242
92
0.671582
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,703
my_util.py
ansible_ansible/test/integration/targets/ansible-test-units/ansible_collections/ns/col/plugins/module_utils/my_util.py
from __future__ import annotations def hello(name): return 'Hello %s' % name
83
Python
.py
3
24.666667
34
0.705128
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,704
make_collection_dir.py
ansible_ansible/test/integration/targets/ansible-galaxy-collection-cli/files/make_collection_dir.py
from __future__ import annotations import sys import pathlib paths = [ 'ns-col-1.0.0.tar.gz', 'foo.txt', 'README.rst', 'GPL', 'LICENSES/MIT.txt', '.reuse/dep5', 'artifacts/.gitkeep', 'plugins/vars/bar.yml', 'plugins/vars/bar.yml.license', 'plugins/vars/baz.yaml', 'plugins/v...
3,469
Python
.py
116
25.112069
51
0.66587
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,705
run-with-pty.py
ansible_ansible/test/integration/targets/ansible-test-no-tty/ansible_collections/ns/col/run-with-pty.py
#!/usr/bin/env python """Run a command using a PTY.""" from __future__ import annotations import sys if sys.version_info < (3, 10): import vendored_pty as pty else: import pty sys.exit(1 if pty.spawn(sys.argv[1:]) else 0)
233
Python
.py
9
23.666667
45
0.705882
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,706
vendored_pty.py
ansible_ansible/test/integration/targets/ansible-test-no-tty/ansible_collections/ns/col/vendored_pty.py
# Vendored copy of https://github.com/python/cpython/blob/3680ebed7f3e529d01996dd0318601f9f0d02b4b/Lib/pty.py # PSF License (see licenses/PSF-license.txt or https://opensource.org/licenses/Python-2.0) """Pseudo terminal utilities.""" # Bugs: No signal handling. Doesn't set slave termios and window size. # Only ...
5,448
Python
.py
160
26.65
109
0.605934
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,707
assert-no-tty.py
ansible_ansible/test/integration/targets/ansible-test-no-tty/ansible_collections/ns/col/tests/integration/targets/no-tty/assert-no-tty.py
#!/usr/bin/env python """Assert no TTY is available.""" from __future__ import annotations import sys status = 0 for handle in sys.stdin, sys.stdout, sys.stderr: if handle.isatty(): print(f'{handle} is a TTY', file=sys.stderr) status += 1 sys.exit(status)
280
Python
.py
10
24.6
52
0.684211
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,708
test_constraints.py
ansible_ansible/test/integration/targets/ansible-test-units-constraints/ansible_collections/ns/col/tests/unit/plugins/modules/test_constraints.py
from __future__ import annotations import botocore def test_constraints(): assert botocore.__version__ == '1.13.50'
123
Python
.py
4
28
44
0.732759
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,709
validate.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/ps_only/plugins/modules/validate.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" module: validate short_description: validate description: validate author: "validate (@validate)" """ EXAMPLES = r""" """ RETURN = r""" """
257
Python
.py
11
22.090909
92
0.728395
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,710
invalid_yaml_syntax.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/invalid_yaml_syntax.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ - key: "value"wrong """ EXAMPLES = """ - key: "value"wrong """ RETURN = """ - key: "value"wrong """ from ansible.module_utils.basic import AnsibleMod...
418
Python
.py
17
22.588235
92
0.686224
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,711
check_mode_attribute_1.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_1.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_1 short_description: Test for check mode attribute 1 description: Test for check mode attribute 1. author: - Ansible Core...
775
Python
.py
26
27.269231
92
0.738896
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,712
check_mode_attribute_6.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_6.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_6 short_description: Test for check mode attribute 6 description: Test for check mode attribute 6. author: - Ansible Core...
867
Python
.py
27
29.481481
106
0.742206
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,713
check_mode_attribute_7.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_7.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_7 short_description: Test for check mode attribute 7 description: Test for check mode attribute 7. author: - Ansible Core...
819
Python
.py
26
28.961538
92
0.742058
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,714
check_mode_attribute_3.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_3.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_3 short_description: Test for check mode attribute 3 description: Test for check mode attribute 3. author: - Ansible Core...
772
Python
.py
26
27.153846
92
0.737838
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,715
check_mode_attribute_2.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_2.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_2 short_description: Test for check mode attribute 2 description: Test for check mode attribute 2. author: - Ansible Core...
815
Python
.py
27
27.555556
92
0.740409
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,716
invalid_choice_value.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/invalid_choice_value.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: invalid_choice_value short_description: Test for equal length of chocies with correct options description: Test for equal length of chocies with...
794
Python
.py
27
25.888889
92
0.700394
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,717
valid_argument_spec_context.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/valid_argument_spec_context.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: valid_argument_spec_context short_description: Valid argument spec context schema test module description: Valid argument spec context schema te...
774
Python
.py
30
20.133333
92
0.618207
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,718
invalid_argument_spec_extra_key.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/invalid_argument_spec_extra_key.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: invalid_argument_spec_extra_key short_description: Invalid argument spec extra key schema test module description: Invalid argument spec extra k...
733
Python
.py
28
21.464286
92
0.649928
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,719
no_callable.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/no_callable.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: no_callable short_description: No callale test module description: No callable test module. author: - Ansible Core Team """ EXAMPLES = """#""...
493
Python
.py
16
28.8125
92
0.726115
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,720
invalid_argument_spec_incorrect_context.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/invalid_argument_spec_incorrect_context.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: invalid_argument_spec_incorrect_context short_description: Invalid argument spec incorrect context schema test module description: Invalid argum...
755
Python
.py
28
22.25
92
0.662031
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,721
sidecar.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/sidecar.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.module_utils.basic import AnsibleModule if __name__ == '__main__': module = AnsibleModule(argument_spec=dict( test=dict(type='str', choices=['foo'...
386
Python
.py
9
39.333333
92
0.687166
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,722
check_mode_attribute_4.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_4.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_4 short_description: Test for check mode attribute 4 description: Test for check mode attribute 4. author: - Ansible Core...
787
Python
.py
26
27.730769
92
0.743046
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,723
_not_deprecated.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/_not_deprecated.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: _not_deprecated short_description: This module is not deprecated description: Its name has a leading underscore, but it is not deprecated. autho...
540
Python
.py
16
31.75
92
0.73166
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,724
option_name_casing.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/option_name_casing.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: option_name_casing short_description: Option names equal up to casing description: Option names equal up to casing. author: - Ansible Core Te...
959
Python
.py
39
20.564103
92
0.648796
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,725
import_order.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/import_order.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.module_utils.basic import AnsibleModule DOCUMENTATION = """ module: import_order short_description: Import order test module description: Import order test m...
498
Python
.py
16
29.0625
92
0.728421
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,726
wrong_aliases.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/wrong_aliases.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: wrong_aliases short_description: Aliases that are attached to the wrong option in documentation description: Aliases that are attached to the wr...
912
Python
.py
38
17.736842
92
0.583141
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,727
check_mode_attribute_5.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/check_mode_attribute_5.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: check_mode_attribute_5 short_description: Test for check mode attribute 5 description: Test for check mode attribute 5. author: - Ansible Core...
796
Python
.py
26
28.076923
92
0.742147
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,728
semantic_markup.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/modules/semantic_markup.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" module: semantic_markup short_description: Test semantic markup description: - Test semantic markup. - RV(does.not.exist=true). author: - Ansib...
2,205
Python
.py
105
15.285714
92
0.54786
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,729
import_order_lookup.py
ansible_ansible/test/integration/targets/ansible-test-sanity-validate-modules/ansible_collections/ns/col/plugins/lookup/import_order_lookup.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.lookup import LookupBase DOCUMENTATION = """ name: import_order_lookup short_description: Import order lookup description: Import order lookup. """ class LookupModule...
404
Python
.py
11
34.181818
92
0.765464
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,730
test_context.py
ansible_ansible/test/units/test_context.py
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible import context class FakeOptions: pass def test_set_global_context(): options ...
763
Python
.py
17
37.529412
92
0.65928
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,731
test_no_tty.py
ansible_ansible/test/units/test_no_tty.py
from __future__ import annotations import sys def test_no_tty(): assert not sys.stdin.isatty() assert not sys.stdout.isatty() assert not sys.stderr.isatty()
172
Python
.py
6
25.166667
34
0.730061
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,732
test_mod_args.py
ansible_ansible/test/units/parsing/test_mod_args.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # Copyright 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.errors import AnsibleParserError from ansible.module_utils.common.sen...
4,661
Python
.py
106
35.820755
121
0.612155
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,733
test_splitter.py
ansible_ansible/test/units/parsing/test_splitter.py
# coding: utf-8 # (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your o...
5,681
Python
.py
158
29.936709
111
0.516564
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,734
test_unquote.py
ansible_ansible/test/units/parsing/test_unquote.py
# coding: utf-8 # (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your o...
1,518
Python
.py
43
32.395349
70
0.597686
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,735
test_ajson.py
ansible_ansible/test/units/parsing/test_ajson.py
# Copyright 2018, Matt Martz <matt@sivel.net> # Copyright 2019, Andrew Klychkov @Andersson007 <aaklychkov@mail.ru> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import json import pytest from collections.abc import Mapping f...
7,201
Python
.py
148
39.864865
148
0.645037
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,736
test_dataloader.py
ansible_ansible/test/units/parsing/test_dataloader.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
10,366
Python
.py
187
47.823529
140
0.678526
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,737
test_dumper.py
ansible_ansible/test/units/parsing/yaml/test_dumper.py
# coding: utf-8 # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed i...
3,598
Python
.py
77
39.844156
137
0.702919
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,738
test_objects.py
ansible_ansible/test/units/parsing/yaml/test_objects.py
# This file is part of Ansible # -*- coding: utf-8 -*- # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distr...
5,570
Python
.py
121
39.347107
112
0.703087
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,739
test_constructor.py
ansible_ansible/test/units/parsing/yaml/test_constructor.py
# -*- coding: utf-8 -*- # (c) 2020 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from yaml import MappingNode, Mark, ScalarNode from yaml.constructor import ConstructorError import ansible.cons...
2,398
Python
.py
68
28.220588
93
0.635421
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,740
test_loader.py
ansible_ansible/test/units/parsing/yaml/test_loader.py
# coding: utf-8 # (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your o...
16,994
Python
.py
335
40.328358
144
0.609523
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,741
test_vault.py
ansible_ansible/test/units/parsing/vault/test_vault.py
# -*- coding: utf-8 -*- # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free So...
35,508
Python
.py
647
44.163833
129
0.662448
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,742
test_vault_editor.py
ansible_ansible/test/units/parsing/vault/test_vault_editor.py
# (c) 2014, James Tanner <tanner.jc@gmail.com> # (c) 2014, James Cammarata, <jcammarata@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version ...
18,393
Python
.py
345
43.011594
122
0.637628
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,743
test_addresses.py
ansible_ansible/test/units/parsing/utils/test_addresses.py
# -*- coding: utf-8 -*- from __future__ import annotations import unittest from ansible.parsing.utils.addresses import parse_address class TestParseAddress(unittest.TestCase): tests = { # IPv4 addresses '192.0.2.3': ['192.0.2.3', None], '192.0.2.3:23': ['192.0.2.3', 23], # IPv...
3,798
Python
.py
81
36.975309
104
0.522225
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,744
test_jsonify.py
ansible_ansible/test/units/parsing/utils/test_jsonify.py
# -*- coding: utf-8 -*- # (c) 2016, James Cammarata <jimi@sngx.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your o...
1,420
Python
.py
31
42
82
0.703514
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,745
test_yaml.py
ansible_ansible/test/units/parsing/utils/test_yaml.py
# -*- coding: utf-8 -*- # (c) 2017, Ansible Project # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
1,123
Python
.py
26
41.307692
135
0.736697
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,746
test_host.py
ansible_ansible/test/units/inventory/test_host.py
# Copyright 2015 Marius Gedminas <marius@gedmin.as> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
3,409
Python
.py
85
33.729412
70
0.678994
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,747
test_group.py
ansible_ansible/test/units/inventory/test_group.py
# Copyright 2018 Alan Rominger <arominge@redhat.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
5,194
Python
.py
136
30.147059
79
0.591865
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,748
test_variable_manager.py
ansible_ansible/test/units/vars/test_variable_manager.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
5,532
Python
.py
122
36.868852
92
0.63753
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,749
test_module_response_deepcopy.py
ansible_ansible/test/units/vars/test_module_response_deepcopy.py
# -*- coding: utf-8 -*- # (c) 2018 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.vars.clean import module_response_deepcopy def test_module_response_deepcopy_basic(): x = 42 y = module_...
1,172
Python
.py
34
29.970588
92
0.652135
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,750
vault_helper.py
ansible_ansible/test/units/mock/vault_helper.py
# Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that it will be useful, # but WITHOUT ...
1,492
Python
.py
29
47.413793
93
0.73677
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,751
path.py
ansible_ansible/test/units/mock/path.py
from __future__ import annotations from unittest.mock import MagicMock from ansible.utils.path import unfrackpath mock_unfrackpath_noop = MagicMock(spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x)
215
Python
.py
4
52
97
0.8125
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,752
loader.py
ansible_ansible/test/units/mock/loader.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
3,130
Python
.py
72
36.541667
88
0.667983
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,753
yaml_helper.py
ansible_ansible/test/units/mock/yaml_helper.py
from __future__ import annotations import io import yaml from ansible.parsing.yaml.dumper import AnsibleDumper class YamlTestUtils(object): """Mixin class to combine with a unittest.TestCase subclass.""" def _loader(self, stream): """Vault related tests will want to override this. Vault cas...
2,067
Python
.py
40
42.675
82
0.655738
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,754
procenv.py
ansible_ansible/test/units/mock/procenv.py
# (c) 2016, Matt Davis <mdavis@ansible.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of ...
2,058
Python
.py
50
37.1
105
0.724812
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,755
test_user_agent.py
ansible_ansible/test/units/galaxy/test_user_agent.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import platform from ansible.galaxy import user_agent from ansible.module_utils.ansible_release import __version__ as ansible_...
516
Python
.py
12
40.25
92
0.741483
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,756
test_api.py
ansible_ansible/test/units/galaxy/test_api.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import json import os import re import pytest import stat import tarfile import tempfile import time from io import BytesIO, S...
53,226
Python
.py
1,100
40.149091
140
0.617404
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,757
test_role_requirements.py
ansible_ansible/test/units/galaxy/test_role_requirements.py
# -*- coding: utf-8 -*- # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.playbook.role.requirement import RoleRequirement def test_null_role_url(): role = RoleRequire...
3,287
Python
.py
65
46.292308
147
0.701031
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,758
test_collection.py
ansible_ansible/test/units/galaxy/test_collection.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import json import os import pytest import re import tarfile import tempfile import uuid from hashlib import sha256 from io im...
45,537
Python
.py
899
43.727475
153
0.675132
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,759
test_collection_install.py
ansible_ansible/test/units/galaxy/test_collection_install.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import copy import json import os import pytest import re import shutil import stat import tarfile import yaml from io import ...
48,892
Python
.py
770
57.012987
155
0.710629
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,760
test_token.py
ansible_ansible/test/units/galaxy/test_token.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import pytest from unittest.mock import MagicMock import ansible.constants as C from ansible.cli.galaxy import Galax...
3,213
Python
.py
72
38.958333
107
0.688646
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,761
test_role_install.py
ansible_ansible/test/units/galaxy/test_role_install.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import json import os import functools import pytest import tempfile from io import StringIO from ansible import context from...
7,118
Python
.py
127
50.88189
155
0.668203
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,762
test_play_context.py
ansible_ansible/test/units/playbook/test_play_context.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2017 Ansible Project # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible import constants as C from ansible import context from ansible.cli.argumen...
2,877
Python
.py
70
36.671429
120
0.737711
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,763
test_playbook.py
ansible_ansible/test/units/playbook/test_playbook.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
1,987
Python
.py
49
34.326531
94
0.676867
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,764
test_conditional.py
ansible_ansible/test/units/playbook/test_conditional.py
from __future__ import annotations import unittest from units.mock.loader import DictDataLoader from unittest.mock import MagicMock from ansible.template import Templar from ansible import errors from ansible.playbook import conditional class TestConditional(unittest.TestCase): def setUp(self): self.lo...
8,974
Python
.py
177
36.734463
113
0.543764
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,765
test_helpers.py
ansible_ansible/test/units/playbook/test_helpers.py
# (c) 2016, Adrian Likins <alikins@redhat.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
17,396
Python
.py
311
41.209003
148
0.574516
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,766
test_play.py
ansible_ansible/test/units/playbook/test_play.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
7,881
Python
.py
222
29.864865
145
0.636196
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,767
test_taggable.py
ansible_ansible/test/units/playbook/test_taggable.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
4,390
Python
.py
73
54.383562
116
0.687821
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,768
test_block.py
ansible_ansible/test/units/playbook/test_block.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
2,689
Python
.py
72
30.458333
70
0.642994
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,769
test_base.py
ansible_ansible/test/units/playbook/test_base.py
# (c) 2016, Adrian Likins <alikins@redhat.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
23,630
Python
.py
500
37.916
128
0.619761
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,770
test_collectionsearch.py
ansible_ansible/test/units/playbook/test_collectionsearch.py
# (c) 2020 Ansible Project # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is ...
2,546
Python
.py
64
34.53125
103
0.697166
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,771
test_included_file.py
ansible_ansible/test/units/playbook/test_included_file.py
# (c) 2016, Adrian Likins <alikins@redhat.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
11,002
Python
.py
260
35.061538
106
0.637752
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,772
test_task.py
ansible_ansible/test/units/playbook/test_task.py
# Copyright: (c) Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import unittest from unittest.mock import patch from ansible import errors from ansible.parsing.yaml import objects from ansible.playbook.task import Task f...
4,244
Python
.py
104
32.336538
115
0.618098
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,773
test_attribute.py
ansible_ansible/test/units/playbook/test_attribute.py
# (c) 2015, Marius Gedminas <marius@gedmin.as> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
1,833
Python
.py
45
35.666667
70
0.701182
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,774
test_include_role.py
ansible_ansible/test/units/playbook/role/test_include_role.py
# (c) 2016, Daniel Miranda <danielkza2@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
9,623
Python
.py
214
33.378505
82
0.577735
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,775
test_role.py
ansible_ansible/test/units/playbook/role/test_role.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
13,480
Python
.py
321
32.392523
91
0.595424
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,776
test_manager.py
ansible_ansible/test/units/config/test_manager.py
# -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import os.path import pytest from ansible.config.manager import ConfigManager, ensure_type, resolve_path, get_config...
6,215
Python
.py
138
39.086957
115
0.627357
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,777
test_find_ini_config_file.py
ansible_ansible/test/units/config/manager/test_find_ini_config_file.py
# -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import os.path import stat import pytest from ansible.config.manager import find_ini_config_file from ansible.modul...
10,402
Python
.py
196
43.663265
145
0.631936
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,778
conftest.py
ansible_ansible/test/units/utils/conftest.py
# Copyright: Contributors to the Ansible project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.utils.display import Display @pytest.fixture() def display_resource(request): Display._Singleton__instance ...
428
Python
.py
11
35.454545
92
0.768293
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,779
test_unsafe_proxy.py
ansible_ansible/test/units/utils/test_unsafe_proxy.py
# -*- coding: utf-8 -*- # (c) 2018 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.utils.unsafe_proxy import AnsibleUnsafe, AnsibleUnsafeBytes, AnsibleUnsafeText, wrap_var from ansible.module_utils...
3,534
Python
.py
76
41.710526
101
0.703335
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,780
test_cleanup_tmp_file.py
ansible_ansible/test/units/utils/test_cleanup_tmp_file.py
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import tempfile from ansible.utils.path import cleanup_tmp_file def test_cleanup_tmp_file_file(): tmp_fd, tmp ...
1,299
Python
.py
33
35.363636
92
0.71303
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,781
test_isidentifier.py
ansible_ansible/test/units/utils/test_isidentifier.py
# -*- coding: utf-8 -*- # Copyright: (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.utils.vars import isidentifier # Originally posted at: http://stackoverflow.com/a/29586366 @pyte...
987
Python
.py
28
31.321429
99
0.69418
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,782
test_plugin_docs.py
ansible_ansible/test/units/utils/test_plugin_docs.py
# -*- coding: utf-8 -*- # (c) 2020 Felix Fontein <felix@fontein.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import copy import pytest from ansible.utils.plugin_docs import ( add_collection_to_versions_and_dates, ) ADD_TEST...
11,253
Python
.py
324
14.830247
92
0.279004
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,783
test_listify.py
ansible_ansible/test/units/utils/test_listify.py
# Copyright: Contributors to the Ansible project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.template import Templar from ansible.utils.listify import listify_lookup_plugin_terms from units.mock.loader imp...
1,341
Python
.py
41
25.707317
92
0.634109
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,784
test_vars.py
ansible_ansible/test/units/utils/test_vars.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015, Toshio Kuraotmi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
9,911
Python
.py
262
26.503817
86
0.49813
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,785
test_helpers.py
ansible_ansible/test/units/utils/test_helpers.py
# (c) 2015, Marius Gedminas <marius@gedmin.as> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from datetime import datetime from ansible.utils.helpers import pct_to_int, object_to_dict, deduplicate_list pct_to_int_testd...
1,488
Python
.py
39
33.435897
92
0.651114
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,786
test_context_objects.py
ansible_ansible/test/units/utils/test_context_objects.py
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import argparse import pytest from ansible.module_utils.common.collections import ImmutableDict from ...
2,759
Python
.py
50
41.5
92
0.568925
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,787
test_display.py
ansible_ansible/test/units/utils/test_display.py
# -*- coding: utf-8 -*- # (c) 2020 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import locale import sys import unicodedata from unittest.mock import MagicMock import pytest from ansible.utils.display impo...
4,422
Python
.py
107
36.308411
116
0.689325
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,788
test_encrypt.py
ansible_ansible/test/units/utils/test_encrypt.py
# (c) 2018, Matthias Fuchs <matthias.s.fuchs@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import pytest from ansible.errors import AnsibleError, AnsibleFilterError from ansible.plugins.filter.core import get_encrypted_passw...
7,019
Python
.py
98
64.846939
144
0.740665
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,789
test_shlex.py
ansible_ansible/test/units/utils/test_shlex.py
# (c) 2015, Marius Gedminas <marius@gedmin.as> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
1,326
Python
.py
30
40.866667
81
0.709953
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,790
test_version.py
ansible_ansible/test/units/utils/test_version.py
# -*- coding: utf-8 -*- # (c) 2020 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.module_utils.compat.version import LooseVersion, StrictVersion import pytest from ansible.utils.version import _...
9,944
Python
.py
275
31.789091
103
0.599272
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,791
test_collection_loader.py
ansible_ansible/test/units/utils/collection_loader/test_collection_loader.py
from __future__ import annotations import inspect import os import pkgutil import pytest import re import sys from importlib import import_module from ansible.modules import ping as ping_module from ansible.utils.collection_loader import AnsibleCollectionConfig, AnsibleCollectionRef from ansible.utils.collection_load...
41,323
Python
.py
718
50.896936
159
0.71023
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,792
shouldnotload.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/ansible/builtin/plugins/modules/shouldnotload.py
from __future__ import annotations # pragma: nocover raise Exception('this module should never be loaded') # pragma: nocover
128
Python
.py
2
62.5
72
0.768
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,793
my_action.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/action/my_action.py
from __future__ import annotations from ..module_utils.my_util import question # pylint: disable=unused-import def action_code(): raise Exception('hello from my_action.py, this code should never execute') # pragma: nocover
232
Python
.py
4
55.25
97
0.764444
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,794
amodule.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/modules/amodule.py
from __future__ import annotations # pragma: nocover raise Exception('hello from amodule.py, this code should never execute') # pragma: nocover
148
Python
.py
2
72
91
0.770833
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,795
__init__.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/modules/__init__.py
from __future__ import annotations # pragma: nocover raise Exception('this should never run') # pragma: nocover
116
Python
.py
2
56
59
0.758929
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,796
my_other_util.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/module_utils/my_other_util.py
from __future__ import annotations from .my_util import question # pylint: disable=unused-import
99
Python
.py
2
48
62
0.791667
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,797
my_util.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections/ansible_collections/testns/testcoll/plugins/module_utils/my_util.py
# WARNING: Changing line numbers of code in this file will break collection tests that use tracing to check paths and line numbers. # Also, do not import annotations from __future__ as this will break detection of __future__ inheritance. def question() -> float: return 3 / 2
291
Python
.py
4
70.25
131
0.733333
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,798
__init__.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/__init__.py
from __future__ import annotations # pragma: nocover raise Exception('this code should never execute') # pragma: nocover
125
Python
.py
2
60.5
68
0.768595
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,799
__init__.py
ansible_ansible/test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/ansible/__init__.py
from __future__ import annotations # pragma: nocover raise Exception('this code should never execute') # pragma: nocover
125
Python
.py
2
60.5
68
0.768595
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)