mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
b75963d370
This PR formats all the `*.py` files found under the `tests/integration` folder. It also reorders the imports and cleans up a bunch of unused imports. The formatting also takes care of other things like wrapping lines and fixing spaces and indents such that the tests look more readable.
15 lines
202 B
Python
15 lines
202 B
Python
import random
|
|
|
|
import bottle
|
|
|
|
|
|
@bottle.route('/hostname')
|
|
def index():
|
|
if random.randrange(2) == 0:
|
|
return 'proxy1'
|
|
else:
|
|
return 'proxy2'
|
|
|
|
|
|
bottle.run(host='0.0.0.0', port=8080)
|