(word_list, target)
| 33 | return ''.join(random.choice(characters) for i in range(length)) |
| 34 | |
| 35 | def find_most_matched_string(word_list, target): |
| 36 | # Get close matches; n=1 ensures only the top match is returned |
| 37 | matches = difflib.get_close_matches(target, word_list, n=1) |
| 38 | return matches[0] if matches else None |
| 39 | |
| 40 | def find_free_port(): |
| 41 | with socketserver.TCPServer(("localhost", 0), None) as s: |
nothing calls this directly
no outgoing calls
no test coverage detected