python-tuf/tests
Martin Vrachev cf4902131e Fix empty list as a default value for function arg
This quote from the Google Python style guide made me realize
why empty list as a default value for an argument could be
dangerous:

"Default arguments are evaluated once at module load time.
This may cause problems if the argument is a mutable object
such as a list or a dictionary. If the function modifies the object
(e.g., by appending an item to a list), the default value is modified."

Read more here:
https://google.github.io/styleguide/pyguide.html#2123-cons

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2020-11-23 21:55:51 +02:00
..
repository_data Tests: Queue replace tmp files, OS port creation 2020-11-13 14:01:57 +02:00
ssl_certs Test: add https test with expired server certificate 2018-09-26 14:15:36 -04:00
.coveragerc Move omit to run section in .coveragerc 2019-07-11 14:32:49 +02:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Simplify aggregate_tests.py 2020-10-30 17:16:39 +02:00
fast_server_exit.py Add tests for tests/utils.py 2020-11-13 14:01:57 +02:00
proxy_server.py Tests: Queue replace tmp files, OS port creation 2020-11-13 14:01:57 +02:00
simple_https_server.py Make "bind successful" the first server message 2020-11-13 14:01:57 +02:00
simple_server.py Tests: Queue replace tmp files, OS port creation 2020-11-13 14:01:57 +02:00
slow_retrieval_server.py Remove unused random module imports 2020-11-13 14:01:57 +02:00
test_api.py Add tests for root and targets metadata 2020-11-09 11:38:26 +02:00
test_arbitrary_package_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_developer_tool.py Remove redundant comments from test classes 2020-10-01 12:22:19 +03:00
test_download.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_endless_data_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_extraneous_dependencies_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_formats.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
test_indefinite_freeze_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_key_revocation_integration.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_keydb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_log.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_mirrors.py Remove unused random module imports 2020-11-13 14:01:57 +02:00
test_mix_and_match_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_multiple_repositories_integration.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_proxy_use.py Tests: Queue replace tmp files, OS port creation 2020-11-13 14:01:57 +02:00
test_replay_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_repository_lib.py Adopt sslib keygen interface encryption changes 2020-11-11 10:27:56 +01:00
test_repository_tool.py Make metadata signatures ordered by keyid 2020-11-19 17:42:27 +01:00
test_roledb.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_root_versioning_integration.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_sig.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_slow_retrieval_attack.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_tutorial.py Adopt sslib keygen interface encryption changes 2020-11-11 10:27:56 +01:00
test_unittest_toolbox.py tests: Configure logging for all test files 2020-09-15 21:36:50 +03:00
test_updater.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_updater_root_rotation_integration.py Tests: Remove "temp file" from comments 2020-11-13 14:01:57 +02:00
test_utils.py Add tests for tests/utils.py 2020-11-13 14:01:57 +02:00
utils.py Fix empty list as a default value for function arg 2020-11-23 21:55:51 +02:00