You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,28 @@ nb = pynetbox.api(
71
71
)
72
72
```
73
73
74
+
## Running Tests
75
+
76
+
First, create and activate a Python virtual environment in the pynetbox directory to isolate the project dependencies:
77
+
78
+
```python
79
+
python3 -m venv venv
80
+
source venv/bin/activate
81
+
```
82
+
83
+
Install both requirements files:
84
+
85
+
```python
86
+
pip install -r requirements.txt
87
+
pip install -r requirements-dev.txt
88
+
```
89
+
90
+
Run pytest:
91
+
92
+
```python
93
+
pytest
94
+
```
95
+
74
96
## Alternative Library
75
97
76
98
> **Note:** For those interested in a different approach, there is an alternative Python API client library available for NetBox called [netbox-python](https://github.com/netbox-community/netbox-python). This library provides a thin Python wrapper over the NetBox API.
0 commit comments