def test_includeme_with_port(start_http_server, config): config.registry.settings['prometheus.port'] = '9105' pyramid_prometheus.includeme(config) start_http_server.assert_called_once_with(9105)
def test_includeme(start_http_server, config): pyramid_prometheus.includeme(config) assert not start_http_server.called