Unit tests

2009-12-25 Thread anatoly techtonik
Hello, I'm having some troubles with trac-accountmanager package and want to execute its unit tests to see if they could catch anything unusual, but it appeared that they were stripped from the package. Python policy is silent about unit tests. Should they be stripped? Or should th

Re: Unit tests

2009-12-25 Thread W. Martin Borgert
Quoting "anatoly techtonik" : Python policy is silent about unit tests. Should they be stripped? Or should they be Debianized or left as-is? Just my opinion: Unit tests should be in the source package, but not in the binary package. Most users don't need them, and if somebody wa

Re: Unit tests

2009-12-25 Thread anatoly techtonik
On Fri, Dec 25, 2009 at 6:01 PM, W. Martin Borgert wrote: > Quoting "anatoly techtonik" : >> >> Python policy is silent about unit tests. Should they be stripped? Or >> should they be Debianized or left as-is? > > Just my opinion: Unit tests should be in

Re: Unit tests

2009-12-26 Thread W. Martin Borgert
Quoting "anatoly techtonik" : Even if most users don't need them, tests greatly increase the value of bugreports and doesn't bloat python packages too much. True. What do other people think of the issue? If unit tests were in the package, reportbug could automatically run

Re: Unit tests

2009-12-26 Thread Guy Hulbert
ple think of the issue? They should only be in the source package. > > If unit tests were in the package, reportbug could automatically > run them on a bug report. Does someone do this already, maybe? Can reportbug be modified to download a source package and run tests ? > -- --

Re: Unit tests

2009-12-26 Thread Ben Finney
e? I think the judgement of “not bloat the package too much” is to be made with consideration of those users striving for a small system as their primary concern, e.g. those trying to install onto embedded systems with minimal storage. Also, the dependencies of a package that includes unit tests ar

Re: Unit tests

2009-12-27 Thread anatoly techtonik
re there any such people here? Do they prefer different package repository with stripped down binary packages like http://wiki.debian.org/Embedded_Debian ? > Also, the dependencies of a package that includes unit tests are > generally greater; a significant amount of Python package

Re: Unit tests

2009-12-28 Thread Sandro Tosi
On Sat, Dec 26, 2009 at 19:11, Guy Hulbert wrote: > On Sat, 2009-26-12 at 17:13 +0100, W. Martin Borgert wrote: >> Quoting "anatoly techtonik" : >> If unit tests were in the package, reportbug could automatically >> run them on a bug report. Does someone do this al

Terminal Pager at unit tests

2014-09-08 Thread Josue Ortega
Hi, Currently I am working on the debianization of oct2py[1] which is a bridge between Python an GNU Octave. When the tests are running the docstrings are displayed in a terminal pager making impossible run all tests without human interaction to close the pager. I've found this really annoying

How to run unit tests?

2020-12-08 Thread Peter Wienemann
Dear Python experts, in trying to update the python-lark package [0] to the most recent upstream version, an interesting issue regarding unit tests showed up [1]. Depending on how one runs unit tests they either fail or not. Tried options are: 1. PYTHONWARNINGS=d pythonX -m unittest

Re: Terminal Pager at unit tests

2014-09-09 Thread Jakub Wilk
* Josue Ortega , 2014-09-08, 21:21: When the tests are running the docstrings are displayed in a terminal pager making impossible run all tests without human interaction to close the pager. I've found this really annoying if someone wants to build the package even the build process might fail i

Re: Terminal Pager at unit tests

2014-09-09 Thread Josué Ortega
On Tue, Sep 9, 2014 at 4:59 AM, Jakub Wilk wrote: > * Josue Ortega , 2014-09-08, 21:21: > >> When the tests are running the docstrings are displayed in a terminal >> pager making impossible run all tests without human interaction to close >> the pager. I've found this really annoying if someone w

Re: How to run unit tests?

2020-12-08 Thread Andrey Rahmatullin
On Tue, Dec 08, 2020 at 09:33:03PM +0100, Peter Wienemann wrote: > Dear Python experts, > > in trying to update the python-lark package [0] to the most recent upstream > version, an interesting issue regarding unit tests showed up [1]. Depending > on how one runs unit tests they

Re: How to run unit tests?

2020-12-12 Thread Peter Wienemann
way to run Python unit tests? No (except "whatever the upstream CI runs"). This would vote for option 3: pythonX -m tests Best regards Peter

Do unit tests on Debian Servers/Build system?

2023-11-01 Thread c . buhtz
Hello, I try to understand some basics about debian packaging Python applications and the upload and test process. My question in short: When (at which time point in the process of packaging python applications for Debian) do the Python unit tests run? I know about the Salsa instance

Re: Do unit tests on Debian Servers/Build system?

2023-11-02 Thread Andrey Rakhmatullin
n applications for Debian) do the Python unit tests run? As a part of the build process they run when the package is built. As a part of autopkgtests then run when autopkgtests for the package are triggered, so after it's uploaded and when its deps/revdeps (?) are uploaded. > I know about the S

first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-02 Thread Carles Pina i Estany
ow failing tests from upstream in dh_auto_test Upstream has 4 failing unit tests. Besides working with upstream to fix them what I've done is, in debian/rules: - override_dh_auto_test: # Disable tests failing from upstream pytest -k "not (test_bad

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-02 Thread Thomas Goirand
time). Is that correct? It's probably preferable to directly put the team as Maintainer. * Question 3: allow failing tests from upstream in dh_auto_test Upstream has 4 failing unit tests. Besides working with upstream to fix them what I've done is, in debian/rules: - override_dh_auto_t

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-02 Thread Carles Pina i Estany
ad it into mentors.debian.net when I finish this email. For reference: it will be the version 1.2.69-3. > > So far I've done: > > Maintainer: Carles Pina i Estany > > And no Uploader (will be the sponsor on the first time). > > > > Is that correct? > > It&

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-03 Thread Andrey Rakhmatullin
On Mon, Oct 02, 2023 at 11:32:31PM +0100, Carles Pina i Estany wrote: > I will create a new version of the package and upload it into > mentors.debian.net when I finish this email. For reference: it will be > the version 1.2.69-3. Note that the usual practice is not bumping Debian versions for pack

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-03 Thread Carles Pina i Estany
Hi Andrey, list, On 03 Oct 2023 at 12:25:27, Andrey Rakhmatullin wrote: > On Mon, Oct 02, 2023 at 11:32:31PM +0100, Carles Pina i Estany wrote: > > I will create a new version of the package and upload it into > > mentors.debian.net when I finish this email. For reference: it will be > > the ver

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-03 Thread Carles Pina i Estany
Hi Andrey, list On 03 Oct 2023 at 23:52:58, Carles Pina i Estany wrote: > On 03 Oct 2023 at 12:25:27, Andrey Rakhmatullin wrote: > > On Mon, Oct 02, 2023 at 11:32:31PM +0100, Carles Pina i Estany wrote: > > > I will create a new version of the package and upload it into > > > mentors.debian.net

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-05 Thread Andrey Rakhmatullin
On Tue, Oct 03, 2023 at 11:52:58PM +0100, Carles Pina i Estany wrote: > > upstream tests. Though I think it won't see your explicit `pytest -k` and > > you should replace the override with a PYBUILD_TEST_ARGS var. > > Done this way: > https://salsa.debian.org/python-team/packages/python-cloudscrap

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-05 Thread Andrey Rakhmatullin
On Wed, Oct 04, 2023 at 07:58:11AM +0100, Carles Pina i Estany wrote: > Recap: pytest executed from "pybuild-autopkgtest", in the > python-cloudscraper package, would use the src cloudscrapper instead of > the installed one. > > So, to make sure that pytest uses the installed one, I added in > deb

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-05 Thread Carles Pina i Estany
Hi, On 05 Oct 2023 at 16:36:17, Andrey Rakhmatullin wrote: > On Tue, Oct 03, 2023 at 11:52:58PM +0100, Carles Pina i Estany wrote: > > > upstream tests. Though I think it won't see your explicit `pytest -k` and > > > you should replace the override with a PYBUILD_TEST_ARGS var. > > > > Done thi

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-05 Thread Carles Pina i Estany
Hi, On 05 Oct 2023 at 16:38:29, Andrey Rakhmatullin wrote: > On Wed, Oct 04, 2023 at 07:58:11AM +0100, Carles Pina i Estany wrote: > > Recap: pytest executed from "pybuild-autopkgtest", in the > > python-cloudscraper package, would use the src cloudscrapper instead of > > the installed one. > >

Re: first package questions (salsa repo in personal or team, debian/control maintainers, expected failing unit tests)

2023-10-09 Thread Carles Pina i Estany
Hi, I've investigated a bit more and found where I was confused. TL;DR: I'm deleting the non-needed workaround and found where things are happening. On 05 Oct 2023 at 16:36:17, Andrey Rakhmatullin wrote: > On Tue, Oct 03, 2023 at 11:52:58PM +0100, Carles Pina i Estany wrote: > > > upstream test