Limnoria/test
James Lu 11d4015f71 Fixes and tests to supybot-plugin-create; modernize the plugin template (#1340)
* supybot-plugin-create: compactify import statements in the template

* supybot-plugin-create: prefer importlib over imp on Python >= 3.4

The imp module is deprecated as of Python 3.4[1], with importlib being the successor. However, importlib is only available in Python 2.7+ and 3.1+, so we should still use a fallback.

[1]: https://docs.python.org/3.6/library/imp.html

* test: add test cases for supybot-plugin-create

* -plugin-create: fix errors when only a subset of args are given

* -plugin-create: rename --real-name to --author/-a

These days, working under a pseudonym or alias is not unheard of, so putting emphasis on real names feels somewhat out of place.

* -plugin-create: add -d as an alias to --desc for consistency
2018-06-20 17:18:46 +02:00
..
__init__.py Fix core tests for Python 3 (actually imported + fixes). 2013-08-10 15:18:04 +02:00
test.py Use __import__() instead of exec(). 2012-08-05 10:22:15 +02:00
test_callbacks.py supybot-test: Add a new level of verbosity, for showing only unexpected exceptions. 2015-08-29 23:02:20 +02:00
test_commands.py Remove need for 2to3. 2015-08-11 16:50:23 +02:00
test_dynamicScope.py Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
test_firewall.py Remove need for 2to3. 2015-08-11 16:50:23 +02:00
test_format.py Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
test_i18n.py Add a decorator to retry tests that fail often. 2015-08-11 17:13:27 +02:00
test_ircdb.py Add tests for ircdb serialization. 2016-02-07 10:49:44 +01:00
test_irclib.py Drop STARTTLS support, it complicates the connection initialization too much. 2018-01-24 09:27:39 +01:00
test_ircmsgs.py Fix timezone handling of b338a2370. 2015-08-22 20:38:16 +02:00
test_ircutils.py Do not break UTF-8 characters in long words. Closes GH-1333. 2018-04-14 22:31:30 +02:00
test_plugin.py Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
test_plugin_create.py Fixes and tests to supybot-plugin-create; modernize the plugin template (#1340) 2018-06-20 17:18:46 +02:00
test_plugins.py Update my name/contact information 2012-09-01 10:16:48 -04:00
test_registry.py registry: Make subvalues inherit privacy. Closes GH-519. 2013-10-06 14:26:03 +00:00
test_schedule.py schedule: Add the 'count' argument. 2013-08-04 09:16:07 +02:00
test_standardSubstitute.py Fix tests from last commit 2016-03-15 08:35:46 -07:00
test_utils.py Properly handle multiple hosts in supybot.servers.http.hosts4. 2017-10-28 09:50:12 +02:00
test_yn.py tests: Use internal mock from Python 3.3+ if available 2015-04-26 22:49:02 -07:00