• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Dev Development

Bit of Free Time

Tyler
March 20, 2013
chat_bubble_outline 8
  • link
    Tyler
    Members 3 posts
    March 20, 2013, 10:27 p.m. March 20, 2013, 10:27 p.m.
    link

    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

  • link
    rafalp
    Project Lead 2028 posts
    March 20, 2013, 10:43 p.m. March 20, 2013, 10:43 p.m.
    link

    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! :)

  • link
    Tyler
    Members 3 posts
    March 20, 2013, 10:48 p.m. March 20, 2013, 10:48 p.m.
    link

    Awesome, sounds good! I'll start on it tonight and see what I can get done.

    Thanks again. :-)

  • link
    rafalp
    Project Lead 2028 posts
    March 20, 2013, 11:44 p.m. March 20, 2013, 11:44 p.m.
    link

    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.

  • link
    rafalp
    Project Lead 2028 posts
    March 21, 2013, 12:09 a.m. March 21, 2013, 12:09 a.m.
    link

    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.

  • link
    Tyler
    Members 3 posts
    March 21, 2013, 12:15 a.m. March 21, 2013, 12:15 a.m.
    link
    @rafalp

    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

  • link
    rafalp
    Project Lead 2028 posts
    April 2, 2013, 2:32 a.m. April 2, 2013, 2:32 a.m.
    link

    Bim daba bim, Misago is now on TravisCI:

    travis-ci.org/rafalp/Misago

  • link
    rafalp
    Project Lead 2028 posts
    April 10, 2013, 2:29 a.m. April 10, 2013, 2:29 a.m.
    link

    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.

    Brad likes this.

    favorite 1

  • link
    Brad
    Members 11 posts
    May 1, 2013, 11:32 a.m. May 1, 2013, 11:32 a.m.
    link

    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. ;)

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago