aboutsummaryrefslogtreecommitdiffstats
path: root/test/examples/test_har_dump.py
Commit message (Collapse)AuthorAgeFilesLines
* test: shift test_data out of our public APIAldo Cortesi2018-04-231-10/+8
|
* Addons and addon testingAldo Cortesi2017-04-261-0/+86
| | | | | | | | - Fix some loading sequence bugs affecting command-line script invocation - Allow addons to over-ride existing options (with a warning). We need this for reloading. - Convert har_dump to new-style arguments, fix and re-instate its test suite. - Covnert miscelaneous other exmples to new-style args.
* Revamp how addons workAldo Cortesi2017-04-251-114/+0
| | | | | | | | | | | | | | | | | | | - Addons now nest, which means that addons can manage addons. This has a number of salutary effects - the scripts addon no longer has to poke into the global addons list, we no longer have to replace/remove/boot-outof parent addons when we load scripts, and this paves the way for making our top-level tools into addons themselves. - All addon calls are now wrapped in a safe execution environment where exceptions are caught, and output to stdout/stderr are intercepted and turned into logs. - We no longer support script arguments in sys.argv - creating an option properly is the only way to pass arguments. This means that all scripts are always directly controllable from interctive tooling, and that arguments are type-checked. For now, I've disabled testing of the har dump example - it needs to be moved to the new argument handling, and become a class addon. I'll address that in a separate patch.
* move examples tests (#2199)Thomas Kriechbaumer2017-03-221-0/+114