Hello again,
I managed to create a sample extension for my board. Basically, it does nothing. I managed to build a package and develop the package. The extension is now imported and enabled on my board.
Next, I want to test, if the extension is loaded correctly. I placed a print statement to the extension initialization part. Then I tried to write a simple unit test for it. I was following the manual and created a simple test.py file. But I didn't quite get where I should put the test folder with test files. So I tried to put it into the extension folder. When I tried to run rbext test -m extension it finishes with error: Unable to import settings_local.py: No module named settings_local.
I tried to find those files and I found them in reviewboard extensions directory in /conf dir. So I moved the test folder directly to the reviewboard directory. It ended with the same error.
This is my folders tree:
-/python_2.7.5
|->/extension
|->/build
|->/dist
|->/sample_extension
|->.extensi-.py.swp
|->__init__.py
|->__init__.pyc
|->extension.py
|->extension.pyc
|->/sample_egg-info
|->/test
|->test.py
|->setup.py
|->reviewboard
...
You can see the test.py file attached in the picture as well as the extension on my board.
Am I doing it the right way?