Update host test function names so they are not overwritten (#2287)

Fix function name reuse in cli tests
This commit is contained in:
Stephen Sadowski 2021-10-24 12:29:16 -05:00 committed by GitHub
parent 5e1ef96934
commit 2f30b5748a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def test_server_run(appname):
("-H", "localhost", "-p", "9999"),
),
)
def test_host_port(cmd):
def test_host_port_localhost(cmd):
command = ["sanic", "fake.server.app", *cmd]
out, err, exitcode = capture(command)
lines = out.split(b"\n")
@ -69,7 +69,7 @@ def test_host_port(cmd):
("-H", "127.0.0.127", "-p", "9999"),
),
)
def test_host_port(cmd):
def test_host_port_ipv4(cmd):
command = ["sanic", "fake.server.app", *cmd]
out, err, exitcode = capture(command)
lines = out.split(b"\n")
@ -86,7 +86,7 @@ def test_host_port(cmd):
("-H", "::", "-p", "9999"),
),
)
def test_host_port(cmd):
def test_host_port_ipv6_any(cmd):
command = ["sanic", "fake.server.app", *cmd]
out, err, exitcode = capture(command)
lines = out.split(b"\n")
@ -103,7 +103,7 @@ def test_host_port(cmd):
("-H", "::1", "-p", "9999"),
),
)
def test_host_port(cmd):
def test_host_port_ipv6_loopback(cmd):
command = ["sanic", "fake.server.app", *cmd]
out, err, exitcode = capture(command)
lines = out.split(b"\n")