Skip to content

Commit 474b646

Browse files
author
Arvid Paeglit
committed
added timing to tests
1 parent 7af5a2e commit 474b646

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_deepcode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ async def test_analysis():
133133
assert len(results['results']['files'].keys()) == 5
134134
assert '/sample-repo/AnnotatorTest.cpp' in list(results['results']['files'].keys())[0]
135135
assert len(results['results']['suggestions'].keys()) == 8
136-
136+
assert list(results['results']['timing'].keys()) == ['fetchingCode', 'analysis', 'queue']
137+
assert results['results']['timing']['fetchingCode'] <= results['results']['timing']['analysis']
138+
assert results['results']['timing']['queue'] >= 0
137139

138140
@pytest.mark.asyncio
139141
async def test_analyze_folders():

0 commit comments

Comments
 (0)