Skip to content

Commit a6bc967

Browse files
author
Arvid Paeglit
committed
fixed parsing of oid for remote analysis;
updated test of remote analysis
1 parent fe8ac20 commit a6bc967

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.0.16] - 2020-06-16
2+
- Analyzing remote git repository with specific commit hash
3+
14
## [1.0.15] - 2020-06-10
25
- Tiny fix of calling webbrowser for log-in page
36

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "deepcode"
3-
version = "1.0.15"
3+
version = "1.0.16"
44
description = "A client for DeepCode API (code analysis made by AI)"
55
authors = ["Deepcode <accounts@deepcode.ai>", "Arvid Paeglit <arvid@deepcode.ai>"]
66
license = "MIT"

tests/test_deepcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ async def test_analyze_folders_severity():
139139

140140
@pytest.mark.asyncio
141141
async def test_remote_analysis():
142-
results = await analyze_git('github.com', 'DeepcodeAI', 'cli', '320d98a6896f5376efe6cefefb6e70b46b97d566')
142+
results = await analyze_git('github.com', 'DeepcodeAI', 'TinyTests', '84b024559a6440e70faadf4d2b30609a7944f237')
143143
assert list(results.keys()) == ['id', 'url', 'results']
144-
assert list(results['results']['files'].keys()) == ['/tests/mocked_for_tests/sample_repository/main.js']
145-
assert len(results['results']['suggestions'].keys()) == 9
144+
assert set(results['results']['files'].keys()) == set(['/New.js', '/Test1.java', '/Test2.java', '/Test3.java', '/Test4.java', '/Test7.java'])
145+
assert len(results['results']['suggestions'].keys()) == 5
146146

147147

148148
@pytest.mark.asyncio

0 commit comments

Comments
 (0)