mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 14:55:46 +00:00
tests: enable local testing on macOS / Darwin
This commit is contained in:
@ -1,3 +1,13 @@
|
||||
import platform
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.skipif(
|
||||
platform.system() == "Darwin",
|
||||
reason="Those tests rely entirely on being able to directly contact container's IP"
|
||||
)
|
||||
|
||||
|
||||
def test_unknown_virtual_host_ipv4(docker_compose, nginxproxy):
|
||||
r = nginxproxy.get("http://nginx-proxy/port")
|
||||
assert r.status_code == 503
|
||||
|
Reference in New Issue
Block a user