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: docs/howto/devTest.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
## Dev-Test
2
2
3
+
### Set up Python Virtual Environment
4
+
5
+
You can set up a Python development environment with a virtual environment:
6
+
7
+
```bash
8
+
python3 -m venv py3
9
+
```
10
+
11
+
Make sure that you have the virtual environment activated:
12
+
13
+
```bash
14
+
. py3/bin/activate
15
+
```
16
+
3
17
### Install poetry
4
18
5
19
To use the latest code in this repo (or to develop new features) you can clone this repo, install `poetry`:
@@ -22,11 +36,31 @@ Local development like this:
22
36
```
23
37
poetry shell
24
38
poetry install -vv
25
-
python -m pytest
39
+
python3 -m pytest
26
40
```
27
41
28
42
There are various ways to select a subset of python unit-tests - see: https://stackoverflow.com/questions/36456920/is-there-a-way-to-specify-which-pytest-tests-to-run-from-a-file
29
43
44
+
### Manual Testing
45
+
46
+
You can also set up credentials to submit data to the graph in your data commons. This assumes that you can get API access by downloading your [credentials.json](https://gen3.org/resources/user/using-api/#credentials-to-send-api-requests).
47
+
48
+
> Make sure that your python virtual environment and dependencies are updated. Also, check that your credentials have appropriate permissions to make the service calls too.
0 commit comments