summaryrefslogtreecommitdiff
path: root/crocoite/test_browser.py
AgeCommit message (Collapse)AuthorFilesLines
2019-01-10browser: Use hypothesis’ domains()Lars-Dominik Braun1-5/+2
Fixes test.
2019-01-03browser: Turn Item into RequestResponsePairLars-Dominik Braun1-219/+312
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-24Drop deprecated debug parameterLars-Dominik Braun1-1/+1
2018-12-24Use f-strings where possibleLars-Dominik Braun1-1/+1
Replaces str.format, which is less readable due to its separation of format and arguments.
2018-12-23Skip test if invalid domain existsLars-Dominik Braun1-7/+17
Must not exist for this test.
2018-12-21Parse URLs by defaultLars-Dominik Braun1-7/+7
Use library yarl (already pulled in by aiohttp). No URL processed should be a string.
2018-11-22controller: Improve idle waitingLars-Dominik Braun1-1/+24
2018-11-19Coding styleLars-Dominik Braun1-3/+2
Fix a few random issues pointed out by pylint, mainly unused imports.
2018-11-17browser: Add tests for header deserializationLars-Dominik Braun1-0/+39
2018-11-14Async chrome process startupLars-Dominik Braun1-11/+4
Move it to .devtools. Seems more fitting.
2018-11-06Switch site loader to async DevTools communicationLars-Dominik Braun1-122/+110
2018-08-05test_browser: Properly handle failed requestsLars-Dominik Braun1-10/+10
Fixes test failures. Very fragile code unfortunately.
2018-08-04Properly handle failure to retrieve request bodyLars-Dominik Braun1-3/+32
Just truncate the WARC record like we do with responses. Also add a few tests, but they’re not covering the call to getRequestPostData. Not sure what we have to do here.
2018-08-04Reintroduce WARC loggingLars-Dominik Braun1-2/+13
Commit 7730e0d64ec895091a0dd7eb0e3c6ce2ed02d981 removed logging to WARC files. Add it again, but with a different implementation.. Credits to structlog for inspiration.
2018-06-25browser: Fix testcase race conditionLars-Dominik Braun1-0/+4
2018-06-21browser: Add a few more testsLars-Dominik Braun1-3/+31
Increase coverage.
2018-06-20Move tests to pytestLars-Dominik Braun1-0/+177
It just seems a little nicer than plain old unittest