Show More
@@ -48,7 +48,7 b' build:' | |||
|
48 | 48 | .PHONY: dev-env |
|
49 | 49 | ## make dev-env based on the requirements files and install develop of packages |
|
50 | 50 | dev-env: |
|
51 |
pip install build virtualenv |
|
|
51 | pip install build virtualenv | |
|
52 | 52 | pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt |
|
53 | 53 | pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt |
|
54 | 54 | pip install -e . |
@@ -1,12 +1,22 b'' | |||
|
1 | 1 | ## special libraries we could extend the requirements.txt file with to add some |
|
2 | ## custom libraries useful for debug and memory tracing | |
|
3 | ||
|
4 | ## uncomment inclusion of this file in requirements.txt run make generate-pkgs and nix-shell | |
|
2 | ## custom libraries usefull for debug and memory tracing | |
|
5 | 3 | |
|
6 | 4 | objgraph |
|
7 | 5 | memory-profiler |
|
8 | 6 | pympler |
|
7 | ||
|
8 | ## debug | |
|
9 | 9 | ipdb |
|
10 | 10 | ipython |
|
11 | rich | |
|
12 | ||
|
13 | # format | |
|
11 | 14 | flake8 |
|
12 | rich | |
|
15 | ruff | |
|
16 | ||
|
17 | pipdeptree==2.7.1 | |
|
18 | invoke==2.0.0 | |
|
19 | bumpversion==0.6.0 | |
|
20 | bump2version==1.0.1 | |
|
21 | ||
|
22 | docutils-stubs |
@@ -164,7 +164,7 b' class TestHooksHttpClient(object):' | |||
|
164 | 164 | 'method': hook_name, |
|
165 | 165 | 'extras': extras, |
|
166 | 166 | }) |
|
167 | assert hooks_proto == {'rc-hooks-protocol': 'msgpack.v1'} | |
|
167 | assert hooks_proto == {'rc-hooks-protocol': 'msgpack.v1', 'Connection': 'keep-alive'} | |
|
168 | 168 | assert result == expected_result |
|
169 | 169 | |
|
170 | 170 | def test_call_queries_http_server(self, http_mirror): |
@@ -259,7 +259,7 b' def test_hooks_http_client_call():' | |||
|
259 | 259 | extras = {'key': 'value'} |
|
260 | 260 | |
|
261 | 261 | with \ |
|
262 |
mock.patch(' |
|
|
262 | mock.patch('http.client.HTTPConnection') as mock_connection,\ | |
|
263 | 263 | mock.patch('msgpack.load') as mock_load: |
|
264 | 264 | |
|
265 | 265 | client = HooksHttpClient(hooks_uri) |
@@ -282,5 +282,5 b' def test_hooks_http_client_serialize():' | |||
|
282 | 282 | extras = {'key': 'value'} |
|
283 | 283 | headers, body = HooksHttpClient._serialize(method, extras) |
|
284 | 284 | |
|
285 | assert headers == {'rc-hooks-protocol': HooksHttpClient.proto} | |
|
285 | assert headers == {'rc-hooks-protocol': HooksHttpClient.proto, 'Connection': 'keep-alive'} | |
|
286 | 286 | assert msgpack.unpackb(body) == {'method': method, 'extras': extras} |
General Comments 0
You need to be logged in to leave comments.
Login now