Skip to content
Snippets Groups Projects
  1. Aug 23, 2016
  2. Aug 21, 2016
  3. Jul 03, 2016
  4. Jul 02, 2016
  5. Jan 10, 2016
  6. Nov 10, 2015
  7. Sep 19, 2015
    • Adam Williamson's avatar
      optionally, cache page text until next edit operation · e8fc54d9
      Adam Williamson authored
      Store the results of page.text() operations in a simple cache
      dict. This avoids unnecessary remote roundtrips. Cache is
      cleared on each successful page.save() operation. cache
      argument can be set to 'False' to disable use of the cache.
      e8fc54d9
  8. Jul 26, 2015
    • Dan Michael O. Heggø's avatar
      Factor out waiting code into a new Sleeper class · f1291672
      Dan Michael O. Heggø authored
      - Moving code related to waiting/sleeping/retrying into a new class for a more object oriented approach.
      - Removing any reference to wait "tokens" to avoid confusion with edit tokens.
      - Note: `max_retries` and `retry_timeout` are no longer available on `Site`, but can still be passed into the constructor as before.
      f1291672
  9. Jul 25, 2015
  10. Mar 15, 2015
  11. Nov 27, 2014
  12. Nov 23, 2014
  13. Nov 17, 2014
  14. Oct 27, 2014
  15. Oct 26, 2014
  16. Oct 05, 2014
  17. Sep 27, 2014
    • Dan Michael O. Heggø's avatar
      Add `expandtemplates` argument to Page.text() · 57df5f4e
      Dan Michael O. Heggø authored
      - This is more flexible than the `Page.get_expanded()` method,
        since it can be combined with the `section` argument as well,
        to get the expanded wikitext of a section.
      
      - Deprecating `Page.get_expanded()`.
      
      - Also fixed a very minor bug where `Page.last_rev_time` was
        not reset when editing new pages after having edited non-new pages.
      
      - Added more Page tests
      57df5f4e
  18. Sep 21, 2014
  19. Sep 05, 2014
  20. Sep 04, 2014
  21. Sep 02, 2014
  22. Aug 31, 2014
    • Dan Michael O. Heggø's avatar
      Fix setup.py test and add tox.ini · 0cf414ea
      Dan Michael O. Heggø authored
      - For some reason, 'pytest-cache' isn't found by setup.py if not
        specified explicitly in 'tests_require'
      - Add tox.ini so tests can be run using tox if desired
      - Update test to not be dependent on serialization
      0cf414ea
    • Dan Michael O. Heggø's avatar
      Simplify running tests · b3f2551d
      Dan Michael O. Heggø authored
      - A single command `python setup.py test` will now install test
        dependencies, make an in-place build and run the tests.
      - The setup script now requires Setuptools. A message will be printed
        if it is not found.
      b3f2551d
  23. Aug 18, 2014
    • Dan Michael O. Heggø's avatar
      1e85766e
    • Dan Michael O. Heggø's avatar
      [#45] replace http.py with the Requests library · 593cb44c
      Dan Michael O. Heggø authored
      - Note the following exception replacements:
        mwclient.errors.HTTPError -> requests.exceptions.ConnectionError
        mwclient.errors.HTTPStatusError -> requests.exceptions.HTTPError
        mwclient.errors.HTTPRedirectError -> requests.exceptions.TooManyRedirects
      
      - Removed the `compability.old_upload` method, which was used for
        MediaWiki < 1.16.
      
      - Requests automatically decompresses gzip-encoded responses, and
        does its best to decode response content to unicode when possible.
      
      - [#53] Using the Responses library to mock http requests in tests
      593cb44c
  24. Jun 15, 2014
  25. Jun 16, 2013
  26. May 11, 2013
  27. Feb 22, 2013
Loading