pywbem / pywbemtools

A set of tools using pywbem to communicate with WBEM servers
http://pywbemtools.readthedocs.io/en/stable/
Apache License 2.0
12 stars 2 forks source link

Deprecate support for old-style mock scripts #1407

Open andy-maier opened 1 month ago

andy-maier commented 1 month ago

pywbemtools 0.8.0 (released in 2020) introduced support for "new-style mock scripts". The support required running on Python>=3.6.

Nowadays pywbemtools requires Python>=3.8, so this ticket is to deprecate the support for old-style mock scripts. They would still be supported, but pywbemtools would issue some warning to the user indicating that support for old-style mock scripts is deprecated and will be removed in a future version.

KSchopmeyer commented 1 week ago

The deprecated warning code is already in the mock scripts init function. However we should extend the documentation of the fact that we have deprecated this functionality.

Also, since we will continue to support old-style scripts we will need at least some tests to remain with the old-style.

Changes required are mostly documentation and some clarification in the test mock scripts that the users may use as examples.