{"action":"created","issue":{"url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/24","labels_url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/24/comments","events_url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/24/events","html_url":"https://github.com/kevin1024/pytest-httpbin/issues/24","id":51116588,"number":24,"title":"Fixed port number","user":{"login":"jon-armstrong","id":419279,"avatar_url":"https://avatars.githubusercontent.com/u/419279?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-armstrong","html_url":"https://github.com/jon-armstrong","followers_url":"https://api.github.com/users/jon-armstrong/followers","following_url":"https://api.github.com/users/jon-armstrong/following{/other_user}","gists_url":"https://api.github.com/users/jon-armstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-armstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-armstrong/subscriptions","organizations_url":"https://api.github.com/users/jon-armstrong/orgs","repos_url":"https://api.github.com/users/jon-armstrong/repos","events_url":"https://api.github.com/users/jon-armstrong/events{/privacy}","received_events_url":"https://api.github.com/users/jon-armstrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-05T16:20:32Z","updated_at":"2015-01-08T19:41:11Z","closed_at":null,"body":"I'm using pytest-httpbin to test a proxy which needs to know the upstream host and port number it is proxying requests to. Currently, my workaround for this is to grab the url from the httpbin object and dynamically write the proxy config with this information. However, it would be convenient to be able to specify the port number pytest-httpbin runs on so I don't need to do this."},"comment":{"url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/comments/69236235","html_url":"https://github.com/kevin1024/pytest-httpbin/issues/24#issuecomment-69236235","issue_url":"https://api.github.com/repos/kevin1024/pytest-httpbin/issues/24","id":69236235,"user":{"login":"jon-armstrong","id":419279,"avatar_url":"https://avatars.githubusercontent.com/u/419279?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-armstrong","html_url":"https://github.com/jon-armstrong","followers_url":"https://api.github.com/users/jon-armstrong/followers","following_url":"https://api.github.com/users/jon-armstrong/following{/other_user}","gists_url":"https://api.github.com/users/jon-armstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-armstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-armstrong/subscriptions","organizations_url":"https://api.github.com/users/jon-armstrong/orgs","repos_url":"https://api.github.com/users/jon-armstrong/repos","events_url":"https://api.github.com/users/jon-armstrong/events{/privacy}","received_events_url":"https://api.github.com/users/jon-armstrong/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T19:41:11Z","updated_at":"2015-01-08T19:41:11Z","body":"I was going to suggest adding port setup in conftest.py, but it looks like that's processed after the built plugins are loaded: http://pytest.org/latest/plugins.html. So, without changing how pytest-httpbin is invoked by default (or adding a separate config), I'm not sure if this is possible."}}