Skip to content

Commit

Permalink
Add/fix information
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Feb 27, 2024
1 parent d830901 commit 57b84a7
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions server_tests/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Server test for the parkkihubi
# Server tests for the parkkihubi

## Install requirements
Python 3.1x is recommended
Python 3.1x is recommended
Create/activate your environment and install:
`pip install python-dotenv`
`pip install requests`

## Create .env file
Create .env file from .env_example and edit the variables for the test case.
## Create the environment
Create the .env file from the .env_example and edit the variables for the test case.

## Database and environment preparations
Add the following variables to the environment. If the item does not exists in the DB add it from the admin.
Add the following variables to the environment. If the item does not exists in the DB, add it from the admin.
* Domain, add the name to the environment variable 'TEST_DOMAIN'
* Payment Zone, add the number to the environment variable 'TEST_PAYMENT_ZONE_NUMBER'
* Unique 'TEST_EXTERNAL_ID'
Expand All @@ -19,15 +20,11 @@ Note, the entrys must be in the the same domain.


## Running test
Operator:
`python operator_api_tests.py`
Permit:
`python permit_api_tests.py`
Permit series:
`python permit_series_api_tests.py`
Enforcement:
`python enforcement_api_tests.py`
Public:
* Operator: `python operator_api_tests.py`
* Permit: `python permit_api_tests.py`
* Permit series: `python permit_series_api_tests.py`
* Enforcement: `python enforcement_api_tests.py`
* Public: `python public_api_tests.py`

For all tests, "now news is good news", only in failures output is displayed.

0 comments on commit 57b84a7

Please sign in to comment.