[Checkins] [zopefoundation/RestrictedPython] 9d3d40: Drop usage of pytest.mark.parametrize (#154)
Michael Howitz
noreply at github.com
Wed Feb 27 09:30:07 CET 2019
Branch: refs/heads/master
Home: https://github.com/zopefoundation/RestrictedPython
Commit: 9d3d403a97d7f030b6ed0f82900b2efac151dec3
https://github.com/zopefoundation/RestrictedPython/commit/9d3d403a97d7f030b6ed0f82900b2efac151dec3
Author: Michael Howitz <mh at gocept.com>
Date: 2019-02-27 (Wed, 27 Feb 2019)
Changed paths:
M setup.cfg
M tests/__init__.py
A tests/helper.py
M tests/test_Guards.py
M tests/test_compile.py
M tests/test_compile_restricted_function.py
M tests/test_imports.py
M tests/test_iterating_over_dict_items.py
M tests/test_print_stmt.py
M tests/transformer/operators/test_arithmetic_operators.py
M tests/transformer/operators/test_bit_wise_operators.py
M tests/transformer/operators/test_bool_operators.py
M tests/transformer/operators/test_comparison_operators.py
M tests/transformer/operators/test_identity_operators.py
M tests/transformer/operators/test_logical_operators.py
M tests/transformer/operators/test_unary_operators.py
M tests/transformer/test_assert.py
M tests/transformer/test_assign.py
M tests/transformer/test_async.py
M tests/transformer/test_attribute.py
M tests/transformer/test_augassign.py
M tests/transformer/test_base_types.py
M tests/transformer/test_breakpoint.py
M tests/transformer/test_call.py
M tests/transformer/test_classdef.py
M tests/transformer/test_comparators.py
M tests/transformer/test_conditional.py
M tests/transformer/test_dict_comprehension.py
M tests/transformer/test_eval_exec.py
M tests/transformer/test_functiondef.py
M tests/transformer/test_global_local.py
M tests/transformer/test_import.py
M tests/transformer/test_iterator.py
M tests/transformer/test_lambda.py
M tests/transformer/test_loop.py
M tests/transformer/test_name.py
M tests/transformer/test_slice.py
M tests/transformer/test_subscript.py
M tests/transformer/test_try.py
M tests/transformer/test_with_stmt.py
M tests/transformer/test_yield.py
M tox.ini
Log Message:
-----------
Drop usage of pytest.mark.parametrize (#154)
* Fix coverage.
IMHO tests are part of the code and should be part when computing coverage.
By adding them to coverage I was able to find unused code in the tests.
* Get rid of the `c_exec` parametrize parameter.
It is not needed any more because if it is the only parameter.
* Get rid of `c_eval` parametrize parameter.
It is not needed any more.
* Get rid of `c_function` parametrize parameter.
It is not needed any more.
* Get rid of `c_single` parametrize parameter.
It is not needed any more.
* Replace `e_eval` parametrize helper by an actual function.
This should make the code more clear.
* Replace `e_exec` parametrize helper by an actual function.
This should make the code more clear.
Additionally now using safe_builtins for all tests.
More information about the checkins
mailing list