Commit Graph

9 Commits

Author SHA1 Message Date
Sergi Delgado Segura
62edf51dbd Adds API HOST and PORT as configurable parameters. Renames them to API_CONNECT and API_PORT for consistency. 2020-04-07 12:29:51 +02:00
Sergi Delgado Segura
c74f6a49af Refactors cli to avoid multi-type returns (normal return + None). Adds exceptions for errors. 2020-04-03 21:57:38 +02:00
Sergi Delgado Segura
dcb221ea36 Adds missing cli register test 2020-04-03 20:57:01 +02:00
Sergi Delgado Segura
31a25f3f60 Adds unit tests for register, and adaps existing tests to match the changes in the commands 2020-03-30 22:24:20 +02:00
Sergi Delgado Segura
6ee04bd303 Sets add_appointment_endpoint from / to /add_appointment for consistency
Also passes the base_url to add_appointment and get_appointment and builds the full endpoint inside (also for consistency)
2020-03-24 19:03:41 +01:00
Bjarne Magnussen
8ef7b44fd0 cli: fixes testing for ConnectionError in get_appointment 2020-03-24 18:25:32 +01:00
Sergi Delgado Segura
f5edaf1bf0 Fixes default HOST to remove the schema from config
The schema now defaults to http if none is defined. Also improves some of the cli docstrings
2020-03-23 17:15:43 +01:00
Sergi Delgado Segura
2587e25637 Adds cli unit tests 2020-03-21 22:13:33 +01:00
Sergi Delgado Segura
5e5ff0278a Removes apps folder 2020-03-18 12:09:58 +01:00