Thanks for creating this forum!
I have a bit of free time and would love to contribute. Is there anything that you need done right now that you can delegate? Happy to contribute to anything that needs done!
Thanks,
Tyler
Thanks for creating this forum!
I have a bit of free time and would love to contribute. Is there anything that you need done right now that you can delegate? Happy to contribute to anything that needs done!
Thanks,
Tyler
As there is no documented API at the moment and I have no knowledge of your python skills, I am skeptic about trusting you with any python work. However there are things that need to be taken care of.
If you want, you can start by writing tests for moderation actions. They are pretty solid and wont be seeing much changes. Moderation mixins that add moderation actions to forum types are located in "thread" and "list" packages located under misago.apps.threadtype.
You could probably create mock views that implement those mixins, create some threads, forums, posts, users and then perform moderation actions on them. Tests should check if those actions do what they were designed to do and only that thing. If those tests indeed find bugs in mixins actions it would be cool if you either opened issues or tried to fix them yourself and started pull requests.
As for tests you should use Django's unittests library. I'll write simple test or two tonight and then try connecting Misago to travis to see how that's going to work.
If you have any questions about those mixins feel free to ask.
Thanks and good luck! :)
Awesome, sounds good! I'll start on it tonight and see what I can get done.
Thanks again. :-)
You may find it useful to add this code in your settings.py after DATABASES
:
if 'test' in sys.argv:
DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'}
SKIP_SOUTH_TESTS = True
This will make Django use your memory for database and keep South silent.
For record, there is example test now on dev branch showing how to initialize tests for Misago.
I've also tried to set up Travis-CI but it looks like they have bad day.
Looks good, thanks! I'll get something up tonight.
Tyler
Bim daba bim, Misago is now on TravisCI:
Once Misago hits 0.6 I too will spend some some time to increase tests coverage.
I would love to have at least Models and Managers covered with unit tests. From there I could move on to other functions.
Propably I would start with writing misago.utils.tests package that would provide utility functions for tests like mock request generator.
Wow, you've really made a lot of progress in the last month or so. The choice to use python is already paying off it seems.
I'm going to pull the source today and get a local test area set up on my work laptop. I'll see if there is anything I can help out with but my Python is really rusty so I don't want to go mucking up things. ;)