Skip to content

Commit 29c40e5

Browse files
author
Kevin Hellemun
committed
Readme for tests
1 parent ae74699 commit 29c40e5

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

tests/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# bunq Python SDK
2+
Version 0.9.0 **BETA**
3+
4+
## Introduction
5+
Hi developers!
6+
7+
8+
Welcome to the bunq Python SDK integration tests. Currently we are not
9+
targeting the 100% test coverage, but rather want to be certain that the most
10+
common scenarios can run without any errors.
11+
12+
13+
## Scenarios
14+
15+
These are the scenarios that are currently being tested:
16+
* Create installation, session-server and device server
17+
* Create a new MonetaryAccount
18+
* Create a tab
19+
* Update the tab
20+
* Create attachment and avatar
21+
* Request money from first MA to second MA
22+
* Accept the request
23+
* Make a transaction from first MA to second MA
24+
* Create connect gr code
25+
* Make a payment to another sandbox user
26+
* Send a chat message in a recent payment
27+
* Delete the current session
28+
* Order a card with a second line
29+
30+
Besides these scenarios some code of ApiContext, ApiClient and the JSON module
31+
are also tested :thumbs_up:.
32+
33+
## Configuration
34+
35+
To run the tests you must first setup the test configuration JSON. This is
36+
located at `tests/assets/config.example.json`. Once you have filled the values
37+
in with your sandbox user data, rename the file to `config.json`.
38+
39+
## Execution
40+
41+
You can run the tests via command line:
42+
43+
` python -m unittest discover -s tests/model/generated`
44+
45+
or via PyCharm, but first you must configure Pycharm by doing the following:
46+
* Got to preferences --> tools --> Python integrated tools and change default
47+
test runner to `unittests`.
48+
* Configure your Python interpreter to an supported Python version. Python 3 is
49+
recommended.
50+
51+
Afterwards you can right click on the tests folders and should be able to run
52+
the tests cases form the IDE.

0 commit comments

Comments
 (0)