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