Search results

From wikinotes
  • nose2 is the followup library to nose. It is built on top of unittest2 (but so far seems to remain compatible with unittest). The primary reason for migrating
    1 KB (153 words) - 22:07, 3 November 2016
  • [dev-packages] nose = '*' unittest2 = {version = ">=1.0,<3.0", markers="python_version < '2.7.9' or (python_version >= '3.0' and python_version < '3.4')"}
    3 KB (256 words) - 16:31, 3 April 2022
  • simplest unittest for python, but it is the most universal so it deserves mentioning. ## Sample UnitTest File import unittest ## Import UnitTest from unnecessary_math
    3 KB (327 words) - 21:52, 3 November 2016
  • Outside of the main python language features (which are unlikely to change), this documents individual python modules (internal and external). Some of
    12 KB (42 words) - 05:17, 3 February 2023
  • tests directory. If I am running a python module, I can re-run it with dnose and the test will be run instead of the python module. ## See ~/.bash/aliases/all
    2 KB (200 words) - 19:47, 7 March 2019
  • Vim plugins (section Python)
    Vim is extremely extensible, both using viml and python (if it is compiled into your version of vim). If you are looking for directions for creating your
    8 KB (76 words) - 23:34, 23 February 2024
  • are defined in the key. This can get fairly complex, but thankfully the python dateutils module provides a way to parse rrules. from dateutil import rrule
    4 KB (503 words) - 23:08, 30 March 2016
  • testobj = mock.Mock() testobj.side_effect = [ 0, 1, 2 ] testobj() # 0 testobj() # 1 testobj() # 2 method 2 This is much simpler than it might at first seem
    7 KB (801 words) - 19:00, 13 February 2021
  • assigning it it's own PID). When running python scripts from a python interpreter, python simulates this by calling the python-executable ( sys.executable ) with
    5 KB (537 words) - 21:58, 17 September 2018
  • filetype (ex: 'python.vim' is read when reading a '.py' file) they are in a directory whose name matches current buffer's filetype (ex: 'python/pymode.vim'
    9 KB (883 words) - 19:49, 7 January 2023