Skip to content

Commit bea3e1b

Browse files
committed
feat: self-citations
1 parent 14d93bd commit bea3e1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paperscraper/citations/tests/test_self_references.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import time
3+
from time import sleep
34
from typing import Dict
45

56
import pytest
@@ -59,6 +60,9 @@ def test_compare_async_and_sync_performance(self, dois):
5960
async_results = self_references_paper(dois)
6061
async_duration = time.perf_counter() - start_time
6162

63+
# Sleep to avoid API delays
64+
sleep(60)
65+
6266
# Measure synchronous execution time (three independent calls)
6367
start_time = time.perf_counter()
6468
sync_results = [self_references_paper(doi) for doi in dois]

0 commit comments

Comments
 (0)