Skip to content

Commit a643c14

Browse files
Yuchen XiaoYuchen Xiao
authored andcommitted
chore: add news
1 parent 2ed9ad0 commit a643c14

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

news/skipif-no-internet.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* Ensure ``git`` is installed and internet connection for ``agentify``.
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

tests/conftest.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import json
2-
import shutil
3-
import socket
42
from pathlib import Path
53

64
import pytest
@@ -19,15 +17,3 @@ def user_filesystem(tmp_path):
1917
json.dump(home_config_data, f)
2018

2119
yield tmp_path
22-
23-
24-
def internet_available():
25-
try:
26-
socket.create_connection(("github.com", 443), timeout=3)
27-
return True
28-
except OSError:
29-
return False
30-
31-
32-
git_available = shutil.which("git") is not None
33-
AGENTIFY_AVAILABLE = internet_available() and git_available

0 commit comments

Comments
 (0)