mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
0d9a06b8c6
* Add deprecation decorator scaffold * Capture type error and unhandled exceptions while function calls * Aware of the current and future version of deprecation * Implement initially is_deprecated decorator * Add an alias for the capitalization * Fix capitalization easier way * Remove an extra line * Add successor name to the deprecation decorator. * Granulate logging and error messages. * Implement function swapper * Raise later the caught exception * Clarify exception message * Save function original name * Remove an extra line * Hide an alternative hidden function name in the error message, preserving the error itself * Rename variable as private * Add a method to detect if a function is using its previous version * Message to the log and/or raise an exception accordingly to the status of used function * Log an error along with the exception * Add internal method documentation * Add documentation and usage process for decorator "is_deprecated" * Add documentation and process usage for the decorator "with_deprecated" * Hide private method name * Fix PEP8, re-word the error message * Deprecate basic uptime function * Add initial decorator unit test * Rename old/new functions, mock versions * Move frequent data to the test setup * Add logging on EOL exception * Rename and document high to low version test on is_deprecated * Implement a test on low to high version of is_deprecated decorator * Add a correction to the test description * Remove a dead code * Implement a test for high to low version on is_deprecated, using with_successor param * Correct typso adn mistaeks * Implement high to low version with successor param on is_deprecated * Setup a virtual name for the module * Implement test for with_deprecated should raise an exception if same deprecated function not found * Implement test for with_deprecated an old function is picked up if configured * Correct test description purpose * Implement test with_deprecated when no deprecation is requested * Add logging test to the configured deprecation request * Add logging testing when deprecated version wasn't requested * Implement test EOL for with_deprecated decorator * Correct test explanation * Rename the test * Implement with_deprecated no EOL, deprecated other function name * Implement with_deprecated, deprecated other function name, EOL reached * Add test description for the with_deprecated + with_name + EOL * Fix confusing test names * Add logging test to the is_deprecated decorator when function as not found. * Add more test point to each test, remove empty lines * Bugfix: at certain conditions a wrong alias name is reported to the log * Fix a typo in a comment * Add test for the logging * Disable a pylint: None will _never_ be raised * Fix test for the deprecated "status.uptime" version * Bugfix: Do not yank raised exceptions * Remove unnecessary decorator * Add test for the new uptime * Add test for the new uptime fails when /proc/uptime does not exists * Rename old test case * Skip test for the UTC time, unless freeze time is used. * Fix pylint * Fix documentation * Bugfix: proxy-pass the docstring of the decorated function * Lint fix |
||
---|---|---|
.. | ||
__init__.py | ||
aggregation_test.py | ||
args.py | ||
async_test.py | ||
boto_test.py | ||
cache_test.py | ||
cloud_test.py | ||
config_test.py | ||
configcomparer_test.py | ||
context_test.py | ||
decorators_test.py | ||
dictupdate_test.py | ||
event_test.py | ||
filebuffer_test.py | ||
find_test.py | ||
format_call_test.py | ||
gitfs_test.py | ||
http_test.py | ||
immutabletypes.py | ||
kwarg_regex_test.py | ||
locales_test.py | ||
network.py | ||
path_join_test.py | ||
process_test.py | ||
rsax931_test.py | ||
runtime_whitespace_regex_test.py | ||
safe_walk_test.py | ||
schedule_test.py | ||
url_test.py | ||
utils_test.py | ||
validate_net_test.py | ||
verify_test.py | ||
vt_test.py | ||
warnings_test.py | ||
which_test.py |