code
stringlengths
3
6.57k
_get_shader_handle(self, path, *args)
len(args)
len(args)
in ("/$$rpconfig", "/$$rp/shader", "/$$rptemp")
path_args.append(source)
path_args.append(path.format(source)
len(args)
RPLoader.load_shader(*path_args)
_get_plugin_id(self)
str(self.__class__.__module__)
split(".")
load_shader(self, *args)
self._get_shader_handle("/$$rp/shader/{0}", *args)
load_plugin_shader(self, *args)
self._get_plugin_id()
self._get_shader_handle(shader_path, *args)
handle_window_resize(self)
self.set_dimensions()
self._targets.values()
target.consider_resize()
set_dimensions(self)
os.path.join(FIXTURES_DIR, "integration", "actions", "inventory")
os.path.join(TEST_FIXTURE_DIR, "ansible_inventory", "inventory.yml")
os.path.join(TEST_FIXTURE_DIR, "ansible-navigator.yml")
Step(user_input=":0", comment="Browse hosts/ungrouped window")
Step(user_input=":0", comment="Group list window")
Step(user_input=":0", comment="group01 hosts detail window")
Step(user_input=":0", comment="host0101 detail window")
Step(user_input=":back", comment="Previous window (group01 hosts detail window)
Step(user_input=":back", comment="Previous window (Group list window)
Step(user_input=":1", comment="group02 hosts detail window")
Step(user_input=":0", comment="host0201 detail window")
Step(user_input=":back", comment="Previous window (group02 hosts detail window)
Step(user_input=":back", comment="Previous window (Group list window)
Step(user_input=":2", comment="group03 hosts detail window")
Step(user_input=":0", comment="host0301 detail window")
Step(user_input=":back", comment="Previous window (group03 hosts detail window)
Step(user_input=":back", comment="Previous window (Group list window)
Step(user_input=":back", comment="Previous window (Browse hosts/ungrouped window)
Step(user_input=":back", comment="Previous window (top window)
Step(user_input=":1", comment="Inventory hostname window")
Step(user_input=":0", comment="host0101 detail window")
Step(user_input=":back", comment="Previous window after host0101 (Inventory hostname window)
Step(user_input=":1", comment="host0201 detail window")
Step(user_input=":back", comment="Previous window after host0201 (Inventory hostname window)
Step(user_input=":2", comment="host0301 detail window")
pytest.fixture(scope="module", name="tmux_session")
fixture_tmux_session(request)
TmuxSession(**params)
test(self, request, tmux_session, step)
os.path.exists(ANSIBLE_INVENTORY_FIXTURE_DIR)
os.path.exists(TEST_CONFIG_FILE)
ValueError("test mode not set")
enumerate(received_output)
os.environ.get("ANSIBLE_NAVIGATOR_UPDATE_TEST_FIXTURES")
any((step.look_fors, step.look_nots)
any((step.look_fors, step.look_nots)
join(received_output)
all(look_for in page for look_for in step.look_fors)
any(look_not in page for look_not in step.look_nots)
any((step.look_fors, step.look_nots)
fixture_path_from_request(request, step.step_index)
open(file=os.path.join(dir_path, file_name)
json.load(infile)
difflib.unified_diff(expected_output, received_output, "expected", "received")
logging.getLogger(__name__)
__virtual__()
__init__(opts)
salt.utils.compat.pack_dunder(__name__)
state_result(result, message, name, changes=None)
balancer_present(name, port, protocol, profile, algorithm=None, members=None, **libcloud_kwargs)
len(match)
state_result(True, "Balancer already exists", name)
starting_members.append({'ip': m['ip'], 'port': m['port']})
state_result(True, "Created new load balancer", name, balancer)
balancer_absent(name, profile, **libcloud_kwargs)
len(match)
state_result(True, "Balancer already absent", name)
state_result(result, "Deleted load balancer", name)
member_present(ip, port, balancer_id, profile, **libcloud_kwargs)
state_result(True, "Member already present", balancer_id)
state_result(True, "Member added to balancer, id: {0}".format(member['id'])
member_absent(ip, port, balancer_id, profile, **libcloud_kwargs)
state_result(result, "Member removed", balancer_id)
state_result(True, "Member already absent", balancer_id)
AnyParameter(object)
__new__(cls, value)
CommandParameterMeta(type)
__new__(cls, name: str, bases: tuple, dct: dict)
serialize()
attributes.update(dct)
super()
__new__(cls, name, bases, attributes)
get_default(self)
serialize(self)
TaskParameterMeta(CommandParameterMeta)
__init__(self)
__new__(cls)
serialize()
get_default()