class documentation
class ZshScriptTestMixin: (source)
Known subclasses: twisted.conch.test.test_scripts.ZshIntegrationTests
, twisted.scripts.test.test_scripts.ZshIntegrationTests
Integration test helper to show that usage.Options classes can have zsh completion functions generated for them without raising errors.
In your subclasses set a class variable like so:
# | cmd name | Fully Qualified Python Name of Options class | # generateFor = [('conch', 'twisted.conch.scripts.conch.ClientOptions'), ('twistd', 'twisted.scripts.twistd.ServerOptions'), ]
Each package that contains Twisted scripts should contain one TestCase subclass which also inherits from this mixin, and contains a generateFor list appropriate for the scripts in that package.