summaryrefslogtreecommitdiff
path: root/crocoite/test_warc.py
AgeCommit message (Collapse)AuthorFilesLines
2019-01-03browser: Turn Item into RequestResponsePairLars-Dominik Braun1-94/+51
Previously Item was just a simple wrapper around Chrome’s Network.* events. This turned out to be quite nasty when testing, so its replacement, RequestResponsePair, does some level of abstraction. This makes testing alot easier, since we now can simply instantiate it without building a proper DevTools event. Should come without any functional changes.
2018-12-25warc: Add testsLars-Dominik Braun1-0/+261
Using hyothesis-based testcase generation. This is quite nice compared to manual test data generation, since it catches alot more corner cases (if done right). This commit also fixes a few issues, including: - log records will only be written if the log is nonempty - properly quote packageUrl path’s - drop old thread checking code - use placeholder url for scripts without name