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
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,19 +124,21 @@ pipenv run python manage.py spectacular --color --file openapi-schema.yml` to bu
124
124
```
125
125
126
126
# Contributing
127
-
See [contribution guide](CONTRIBUTING.md).
127
+
128
+
We welcome contributions! Please join our [Discord](https://discord.gg/9RNE2rY) to coordinate with the team, or check out the [issue board](https://github.com/open5e/open5e-api/issues) to see what's being worked on.
128
129
# Tests
129
130
130
-
Tests are located inthe `api/tests`directory. These should be run before pushing new changes to the main repository. These tests require that the api is [running](##run) at `http://localhost:8000`.
131
+
Tests are located in `api/tests` and `api_v2/tests`. Run them before pushing new changes. Tests require the API to be [running](##run) at `http://localhost:8000`.
131
132
132
133
```bash
133
134
pipenv run pytest
134
135
```
135
136
136
137
## Approval tests
137
-
Approval tests are run against the approved files in`api/tests/approved_files` as `*.approved.*`. If a test fails then the recieved input will be stored in a `*.recieved.*` file. If you wish to approve the changes, replace the old approved file with the recieved file.
138
+
Approval tests compare API responses against pre-approved JSON files in `api_v2/tests/responses/*.approved.json`. If a test fails, the received response is saved as `*.received.json`. To approve changes, rename the received file to replace the approved file.
139
+
140
+
Received files should not be committed to git.
138
141
139
-
Recieved files shall not be included in the git repo.
0 commit comments