New user here. Just wrote my first plugin (fun API!); but I'm having an issue writing tests for the plugin. It could be a simple Python issue, too (I'm relatively new to Python, as well). This is the error:
ImportError: No module named sublime
Here's the distilled unit test, which resides in my-plugin/tests:
from my_plugin import MyCommand
Very abbreviated plugin:
It fails on the 'import sublime' statement above when I try to instantiate 'MyCommand'. In other words, the test code doesn't execute beyond the import statements.
So, where is the sublime module such that I can add it to my path? Or maybe there's a different (better?) approach to writing tests?
Any help is much appreciated!