Skip to content

Commit adfb4a3

Browse files
author
Arvid Paeglit
committed
1.0.15 version - changed the way we use webbrowser to load login page
1 parent dce2f81 commit adfb4a3

4 files changed

Lines changed: 6 additions & 3 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.15] - 2020-06-10
2+
- Tiny fix of calling webbrowser for log-in page
3+
14
## [1.0.14] - 2020-06-08
25
- Removed explicit dependency from asyncio, as it's included to python itself and conflicts with some virtual environments
36

deepcode/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def login(service_url, source=DEFAULT_SOURCE):
2020
api_key, login_url = res['sessionToken'], res['loginURL']
2121

2222
# Open browser to complete authentication and assign api_key and user
23-
webbrowser.get().open_new(login_url)
23+
webbrowser.open_new_tab(login_url)
2424

2525
while(True):
2626
try:

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.14"
3+
version = "1.0.15"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def test_analysis():
103103
results = await get_analysis(bundle_id, linters_enabled=True)
104104
assert list(results.keys()) == ['id', 'url', 'results']
105105
assert results['id'] == bundle_id
106-
assert results['url'] == '{}/app/{}/_/%2F/code/'.format(DEFAULT_SERVICE_URL, bundle_id)
106+
assert results['url'] == '{}/app/{}/_/%2F/code/?'.format(DEFAULT_SERVICE_URL, bundle_id)
107107
assert list(results['results'].keys()) == ['files', 'suggestions']
108108
assert len(results['results']['files'].keys()) == 1
109109
assert '/mocked_for_tests/sample_repository/main.js' in list(results['results']['files'].keys())[0]

0 commit comments

Comments
 (0)