.. _changelog: Changelog ========= .. _release-2.5.0: 2.5.0 - TBD * Remove support for pylama due to it still importing pkg_resources .. _release-2.4.9: 2.4.9 - 28 April 2024 * Removed asynctest as a test dependency .. _release-2.4.8: 2.4.8 - 9 March 2024 * Update to black 24.2.0 * Removed support for python3.7 .. _release-2.4.7: 2.4.7 - 14 February 2024 * Include test examples in the source distribution .. _release-2.4.6: 2.4.6 - 21 January 2024 * Fixed pip's ability to install from the sdist .. _release-2.4.5: 2.4.5 - 21 January 2024 * Fixed the sdist build to contain more than nothing .. _release-2.4.4: 2.4.4 - 16 January 2024 * Don't reference deprecated pytest.Instance in pytest8 .. _release-2.4.3: 2.4.3 - 8 November 2023 * Ensure f-string tokenising in python 3.12 doesn't break dedents * Converted packaging to hatchling .. _release-2.4.2: 2.4.2 - 25 June 2023 * Make sure adding a comment doesn't indent code after the comment .. _release-2.4.1: 2.4.1 - 27 November 2022 * Fix the pth file so that pytest doesn't warn about noseOfYeti already being loaded * Fix being able to have default string values for args in it signatures * Add ability to add a return type to an it * Added default return type to an it of ``-> None`` if ``NOSE_OF_YETI_IT_RETURN_TYPE`` is in your environment and not set to an empty string, "false" (case insensitive) or "0". .. _release-2.4.0: 2.4.0 - 16 November 2022 * ``noseOfYeti.spec_code.codec`` now returns the same instance every time * ``noseOfYeti.spec_codec.register`` now has a mandatory ``transform: bool`` argument which will be used to tell the global codec whether it should transform the code that passes through it or not. Register will not reregister new search paths. * Introduced a pylama linter to replace the noy_pylama script * Fixed regression introduced in previous release with pytest versions before 7 .. _release-2.3.1: 2.3.1 - 17 February 2022 * Fix how tests are collected in pytest .. _release-2.3.0: 2.3.0 - 26 January 2022 * Make it possible to add type annotations to arguments in an "it" signature .. _release-2.2.0: 2.2.0 - 15 January 2022 * Add a mypy plugin * The extra ``__testname__`` and ``is_noy_spec`` lines now get a type:ignore comment so that mypy doesn't complain about them * Update pylama plugin .. _release-2.1.0: 2.1.0 - 6 November 2021 * nose-of-yeti is now only python3.7+ compatible .. _release-2-0-3: 2.0.3 - 7 June 2021 * Release using github actions, no changes to 2.0.2 .. _release-2-0-2: 2.0.2 - 22 November 2020 * Make this work with python3.9 .. _release-2-0-1: 2.0.1 - 13 April 2020 * Added a pyls plugin * Made available a ``noy_pylama`` console script to run pylama with the ability to translate ``coding: spec`` files .. _release-2-0-0: 2.0.0 - 8 March 2020 * nose-of-yeti is now only python3.6+ compatible * Removed support for nose2, pylint and sphinx. * I don't use these and I'm not sure these plugins actually work. * Removed configurability as I believe all the options are unnecessary. * ``noseOfYeti.tokeniser.register_from_options`` is now ``noseOfYeti.tokeniser.register`` * Removed ``noseOfYeti.tokeniser.config``, ``noseOfYeti.tokeniser.imports`` and ``noseOfYeti.plugins.support.spec_options`` * It is no longer valid to end an ``it`` or ``ignore`` block without a colon. Previously it would replace these with a line that raises nose.SkipTest. This obviously won't work in a non nosetests environment and I think it's best if skipped tests were explicit rather than injected when you forget a ``:``. * Removed the ``context`` block. Groups can now only be a ``describe``. * Removed wrapped setup/teardown helpers * You no longer need to import sync and async ``noy_sup_setUp`` or ``noy_sup_tearDown`` methods anymore. * ``noseOfYeti.plugins.support.test_chooser`` is now ``noseOfYeti.tokeniser.chooser`` * Improved how I turn sentences into valid python variable names for classes and functions. .. _release-1-9-1: 1.9.1 - 22 September 2019 Turns out the incremental decoder does get used for the whole file, so I've fixed that. But I was still able to make read the file as is if I've only got part of the file .. _release-1-9-0: 1.9.0 - 22 September 2019 Made the incremental decoder just utf8 so that pdb inside a spec file is able to show lines from the test. This works because the import time translation doesn't use the incremental decoder. And this is necessary because the incremental decoder would often get confused by the indentation and return nothing Also, nose-of-yeti will now detect bracket mismatches and tell you where you've made a mistake. I.e. if you close the wrong type of bracket, or have a mismatched bracket, or have a hanging open bracket, it will tell you line and column numbers of where this is happening .. _release-1-8-3: 1.8.3 - 31 August 2019 Make pytest support __only_run_tests_in_children__ property on describes You can now translate a string by doing:: from noseOfYeti.tokeniser.spec_codec import codec_from_options spec_codec = codec_from_options() translated = spec_codec.translate(src_str_or_bytes) .. _release-1-8-2: 1.8.2 - 25 August 2019 Made pytest support play nicer when running against a unittest suite .. _release-1-8-1: 1.8.1 - 4 August 2019 Added support for pytest. The support means the spec codec is registered for you and nested describes will not run inherited tests. .. _release-1-8: 1.8 - 30 October 2018 Changed the license to MIT from GPL .. _release-1-7: 1.7 - 11 April 2017 NoseOfYeti now understands and respects the async keyword. Only really useful if you use something like https://asynctest.readthedocs.io/en/latest/ .. _release-1-6: 1.6 - 22 July 2016 Nose2 support! .. _release-1-5.2: 1.5.2 - 26 May 2016 Python3 Compatibility with the plugins .. _release-1-5.1: 1.5.1 - 1 June 2014 Fixed a problem with repeating tests in sub-describes .. _release-1-5.0: 1.5.0 - 6 May 2014 Added python3 support (based off the work by cwacek) Use tox to run tests in python2 and python3 now Updated pylint plugin - Unfortunately seems to cause a lot of "Final newline missing" however. .. _release-1-4.9: 1.4.9 - 9 March 2014 Added __only_run_tests_in_children__ functionality .. _release-1-4.8: 1.4.8 - 22 August 2013 Fixed ignore tests so they don't inject a nose.SkipTest Removed all reference to should_dsl (Except for the tests, I'll change those another day) .. _release-1-4.7: 1.4.7 - 3 May 2013 No injected imports by default And changed --noy-without-should-dsl and --noy-without-default-imports to --noy-with-should-dsl and --noy-with-default-imports .. _release-1-4.6: 1.4.6 - 3 May 2013 Can now set common settings in a config json file. .. _release-1-4.5: 1.4.5 - 29 March 2013 Minor fixes .. _release-1-4.4: 1.4.4 - 29 August 2012 Minor fixes .. _release-1-4.3: 1.4.3 - 12 May 2012 Added wrapped-setup option to allow decorating before_each and after_each functions instead of inserting a super call into them. pre 1.4.3 No Changelog was maintained. First commit - 1 July 2010