Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader01.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.bugs.dist,linux.debian.devel,linux.debian.maint.python Subject: Bug#1021964: ITP: python-noseofyeti -- Module to create Python codec for tests using RSpec inspired DSL Date: Tue, 18 Oct 2022 03:20:01 +0200 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Oct 18 01:15:12 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.75 Reply-To: Scott Kitterman , 1021964@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org X-Debian-Pr-Message: report 1021964 X-Debian-Pr-Package: wnpp Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 7.10.3+deb11u1 X-Debian-Message: from BTS X-Mailing-List: archive/latest/1739256 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 29 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 17 Oct 2022 21:11:13 -0400 X-Original-Message-ID: <166605547378.1519457.13658880889309057614.reportbug@localhost> Xref: csiph.com linux.debian.bugs.dist:1121318 linux.debian.devel:106073 linux.debian.maint.python:14539 Package: wnpp Severity: wishlist Owner: Scott Kitterman X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org * Package name : python-noseofyeti Version : 2.3.1 Upstream Author : Stephen Moore * URL : https://github.com/delfick/nose-of-yeti * License : MIT Programming Lang: Python Description : Module to create Python codec for tests using RSpec inspired DSL This is a project creates a custom Python codec that lets you write your tests using an RSpec inspired DSL (i.e. describe and it blocks). . It uses the fact that you can register a codec that is able to modify a Python file before executing it. Using this when Python imports a file with a particular encoding as the first line of the file it will be intercepted and potentially rewritten into something else before the import continues. . nose-of-yeti uses this technique to translate from the DSL it defines, into Python classes and functions that then will be executed by your test framework of choice. I plan to maintain this package as part of the Debian Python team. It is needed to run the tests for python-dict2xml, which are now provided in the upstream tarball.