Commit graph

117 commits

Author SHA1 Message Date
s3lph
fd2b0a4e55 Better test coverage in database wrapper. 2018-08-28 22:35:52 +02:00
s3lph
e29423c32e Full coverage in exceptions. 2018-08-28 22:14:03 +02:00
s3lph
9cd6522b26 Full coverage in config. 2018-08-28 21:45:11 +02:00
s3lph
39dacfcb39 Full coverage in util. 2018-08-28 21:20:14 +02:00
s3lph
594f904980 Fixed codestyle 2018-08-28 21:09:23 +02:00
s3lph
e71817cf8e Increased coverage in httpd, also some code deduplication. 2018-08-28 21:07:32 +02:00
s3lph
4c2c454f12 Full branch coverage in database facade. Also removed a redundant consistency check. 2018-08-21 02:34:05 +02:00
s3lph
bf50d65389 Full branch coverage in currency parsing. 2018-08-21 01:13:35 +02:00
s3lph
0fe8ef55a2 Pagelet initialization tests: Added safeguards against non-terminating threads. 2018-08-19 01:06:38 +02:00
s3lph
cd87695dd1 Pagelet initialization test. 2018-08-18 02:44:09 +02:00
s3lph
5bace1a3f8 Implemented pagelet initialization. 2018-08-17 20:44:07 +02:00
s3lph
f6901f7f9e User bootstrapping documentation 2018-08-15 16:18:52 +02:00
s3lph
0b34f5ec7f Added unit tests for admin user test and touchkey-only userlist. 2018-08-14 23:58:54 +02:00
s3lph
707883b1c4 Removed trailing whitespace. 2018-08-14 22:57:52 +02:00
s3lph
7f58da298b Basic user bootstrapping, still needs documentation & testing. 2018-08-14 22:53:39 +02:00
s3lph
30be649ae2 Implemented configurable static response headers. 2018-08-03 18:42:30 +02:00
s3lph
207f4f1531 Merge branch 'staging' into python-3.7 2018-08-02 17:34:39 +02:00
s3lph
be09ea1ee7 Wrote code documentation for the pagelets of the current implementation, and for some of the jinja2 templates 2018-07-23 00:19:41 +02:00
s3lph
c20029fb36 Moved primitives package to db. 2018-07-22 15:30:59 +02:00
s3lph
ca3c3e755c One more trailing whitespace. 2018-07-21 21:51:02 +02:00
s3lph
1c733c6203 Fixed another codestyle error. 2018-07-21 21:49:02 +02:00
s3lph
9afd86d5ab Fixed code style in db schema definitions. 2018-07-21 21:46:46 +02:00
s3lph
ce0a01cb7c Fixed change_user and change_product unit tests. 2018-07-21 21:45:05 +02:00
s3lph
bead299ccd Migration to a new database schema (version 2), where each transaction (purchase, deposit, or admin modification) is recorded individually. 2018-07-21 21:39:42 +02:00
s3lph
b1a56f59fc Moved currency formatting/parsing into generic util package 2018-07-20 15:30:58 +02:00
s3lph
a4930d268d Added code comments to parse_chf. 2018-07-20 15:25:06 +02:00
s3lph
862a0e6fa8 Implemented unit tests for currency formatting and parsing. 2018-07-20 15:20:33 +02:00
s3lph
103e06cf12 Implemented currency formatting and parsing. 2018-07-20 14:58:22 +02:00
s3lph
0ab7d48622 Enabled jinja2 escaping by default. 2018-07-20 13:57:23 +02:00
s3lph
63aef74e10 Merge branch '18-libmagic-mime-type-detection' into staging-unstable 2018-07-20 13:04:57 +02:00
s3lph
8b0e871dc7 Only use libmagic for static resources if extension-based guessing fails. 2018-07-20 13:01:33 +02:00
s3lph
b6b07fdac5 Merge branch '18-libmagic-mime-type-detection' into staging-unstable 2018-07-20 10:59:39 +02:00
s3lph
8598daf3b0 Catch potential file-magic exception. 2018-07-20 00:49:29 +02:00
s3lph
5912d1e624 Use a libmagic wrapper to guess Content-Type headers. 2018-07-20 00:32:51 +02:00
s3lph
2a75151c2f Merge branch 'dbfacade-staging-merge' into staging-unstable 2018-07-19 22:06:31 +02:00
s3lph
c4018156f5 Changed the change_user and change_product API to get rid of the update -> write -> undo on failure pattern. 2018-07-19 21:51:35 +02:00
s3lph
fcc64d1662 Implemented unit tests for get_user and get_product. 2018-07-19 21:33:19 +02:00
s3lph
105a10e91b Merged extended database API into a branch derived from master. WIP; needs unit tests. 2018-07-17 22:03:08 +02:00
s3lph
bb3d9e62e6 Ported code to Python 3.7. TODO: Port CI pipeline and deployment images. 2018-07-16 19:47:54 +02:00
s3lph
3e289e4df8 Merge branch 'master' into staging-unstable 2018-07-15 00:57:33 +02:00
s3lph
fe83b2017c Fixed some minor type annotation issues. 2018-07-15 00:55:39 +02:00
s3lph
c416cac03a Merge branch 'master' into staging-unstable 2018-07-14 23:48:31 +02:00
s3lph
69601150a7 Added additional unit tests. 2018-07-14 23:44:27 +02:00
s3lph
5c9d85fa70 Removed all APSW references. 2018-07-14 23:35:32 +02:00
s3lph
f423aa579a Merge branch 'master' into staging-unstable 2018-07-14 23:09:07 +02:00
s3lph
96eaa2c4c0 Unit tests for 304 Not Modified testing. 2018-07-14 23:05:50 +02:00
s3lph
a9fc6f451b Cleaner datetime API usage. 2018-07-14 22:55:14 +02:00
s3lph
87b66719e3 Implemented (probably quite shaky) static content cache headers. 2018-07-14 19:00:37 +02:00
s3lph
45be1930a4 Merge branch 'master' into staging-unstable 2018-07-14 13:20:53 +02:00
s3lph
4626f22339 config documentation 2018-07-14 13:14:53 +02:00