diff options
author | MS <ms@taler.net> | 2020-08-28 10:09:40 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-08-28 10:09:40 +0200 |
commit | d8fdf6d2b7fb104e4885007e02538fa674278fb7 (patch) | |
tree | 65f1503329422e235b19e99fe66576d648951436 | |
parent | c1e6df5c2ce4e828074375f4fb0765196cbea3c9 (diff) | |
download | bank-d8fdf6d2b7fb104e4885007e02538fa674278fb7.tar.gz bank-d8fdf6d2b7fb104e4885007e02538fa674278fb7.tar.bz2 bank-d8fdf6d2b7fb104e4885007e02538fa674278fb7.zip |
test /config
-rw-r--r-- | talerbank/app/tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py index d893637..f5a70b0 100644 --- a/talerbank/app/tests.py +++ b/talerbank/app/tests.py @@ -64,8 +64,17 @@ def clear_db(): cursor.execute("ALTER SEQUENCE app_bankaccount_account_no_seq" " RESTART") cursor.execute("ALTER SEQUENCE app_banktransaction_id_seq RESTART") +# Testing the "Integration API": +# has three operations: 1) /config, 2,3) create, see status of withdrawal. +class IntegrationConfigTestCase(TestCase): + def test_config(self): + c = Client() + r = c.get("/config") + self.assertEqual(r.status_code, 200) + # Testing the "Access API": -# (testing) registration* + ask for balance* + withdraw: create* / ask status* / abort* / confirm. +# (testing) registration + ask for balance +# withdraw: create / ask status / abort / confirm. class AccessApiWithdrawTestCase(TestCase): def setUp(self): clear_db() |