Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/docker-py
/ random_name
Function
random_name
tests/helpers.py:101–102 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
99
100
101
def
random_name():
102
return
f
'dockerpytest_{random.getrandbits(64):x}'
103
104
105
def
force_leave_swarm(client):
Callers
15
test_run_with_network
Method · 0.85
test_run_with_networking_config
Method · 0.85
test_run_with_networking_config_with_undeclared_network
Method · 0.85
test_run_with_networking_config_only_undeclared_network
Method · 0.85
create_network
Method · 0.85
test_create_network_with_host_driver_fails
Method · 0.85
test_save_and_load_repo_name
Method · 0.85
test_build_with_network_mode
Method · 0.85
test_build_out_of_context_dockerfile
Method · 0.85
test_build_in_context_dockerfile
Method · 0.85
test_build_in_context_nested_dockerfile
Method · 0.85
test_build_in_context_abs_dockerfile
Method · 0.85
Calls
no outgoing calls
Tested by
15
test_run_with_network
Method · 0.68
test_run_with_networking_config
Method · 0.68
test_run_with_networking_config_with_undeclared_network
Method · 0.68
test_run_with_networking_config_only_undeclared_network
Method · 0.68
create_network
Method · 0.68
test_create_network_with_host_driver_fails
Method · 0.68
test_save_and_load_repo_name
Method · 0.68
test_build_with_network_mode
Method · 0.68
test_build_out_of_context_dockerfile
Method · 0.68
test_build_in_context_dockerfile
Method · 0.68
test_build_in_context_nested_dockerfile
Method · 0.68
test_build_in_context_abs_dockerfile
Method · 0.68