Skip to content
Snippets Groups Projects
Commit 106b3c84 authored by Josef Olsson's avatar Josef Olsson
Browse files

Minor edits in testing files

parent 02abfcf1
No related branches found
No related tags found
1 merge request!159Resolve "Documentation"
...@@ -3,7 +3,7 @@ Testing ...@@ -3,7 +3,7 @@ Testing
Here we briefly describe how we have tested the system. Here we briefly describe how we have tested the system.
Both unit tests for the client and server has been made. Both unit tests for the client and server has been made.
Some end to end tests has also been made that tests both the server and client at the same time. Some end-to-end tests have also been made that tests both the server and client at the same time.
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
The Python testing framework used to test the server is [pytest](https://docs.pytest.org/). The Python testing framework used to test the server is [pytest](https://docs.pytest.org/).
The server tests are located in the folder `./server/tests`. The server tests are located in the folder `./server/tests`.
The tests are further divided into files that test the database `test_db.py` and test the api `test_api.py`. The tests are further divided into files that test the database (`test_db.py`) and test the api (`test_api.py`).
The file `test_helpers.py` is used to store some common functionality between the tests, such as adding default values to the database. The file `test_helpers.py` is used to store some common functionality between the tests, such as adding default values to the database.
There are also some functions that makes using the api easier, such as the `get`, `post` and `delete` functions. There are also some functions that makes using the api easier, such as the `get`, `post` and `delete` functions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment