File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
test :
10
10
@# if SLOW is not set, pass `-m "not slow"` to skip slow tests
11
- poetry run pytest ${SRCDIRS} -v --durations=5 \
11
+ poetry run pytest ${SRCDIRS} -v --log-level INFO -- durations=5 \
12
12
--cov=gptme --cov-report=xml --cov-report=term-missing --cov-report=html \
13
13
$(if $(SLOW ) ,, -m "not slow") \
14
14
$(if $(PROFILE ) , --profile-svg)
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def get_browser():
21
21
"""
22
22
global _p
23
23
if _p is None :
24
+ logger .info ("Starting browser" )
24
25
_p = sync_playwright ().start ()
25
26
26
27
atexit .register (_p .stop )
@@ -40,6 +41,7 @@ def load_page(url: str) -> Page:
40
41
)
41
42
42
43
# create a new page
44
+ logger .info (f"Loading page: { url } " )
43
45
page = context .new_page ()
44
46
page .goto (url )
45
47
@@ -48,6 +50,7 @@ def load_page(url: str) -> Page:
48
50
49
51
def search (query : str , engine : EngineType = "google" ) -> str :
50
52
"""Search for a query on a search engine."""
53
+ logger .info (f"Searching for '{ query } ' on { engine } " )
51
54
if engine == "google" :
52
55
return _search_google (query )
53
56
elif engine == "duckduckgo" :
You can’t perform that action at this time.
0 commit comments