Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8376

Re: running tests against installed version of package

From Tiago Ilieve <tiago.myhro@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: running tests against installed version of package
Date 2016-04-02 10:10 +0200
Message-ID <rjoN3-S4-1@gated-at.bofh.it> (permalink)
References <rguch-6J2-5@gated-at.bofh.it> <riSNd-2N8-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Thomas,

On 31 March 2016 at 18:49, Thomas Goirand <zigo@debian.org> wrote:
> Most of the time, you get by this doing:
> PYTHONPATH=$(CURDIR) python -m pytest tests

Awesome tip! Just stumbled up on this one when imports where changed
from relative to absolute and this tip properly fixed the matter.

Piotr,

On 31 March 2016 at 19:13, Piotr Ożarowski <piotr@debian.org> wrote:
> this will test python2.7 only and will most probably ignore extensions, etc.

I've used the following workaround for this.

override_dh_auto_test:
        PYTHONPATH=$(CURDIR) py.test
        PYTHONPATH=$(CURDIR) py.test-3

... As Python's "unittest discover" weren't working anyway.

Regards,
Tiago.

-- 
Tiago "Myhro" Ilieve
Blog: https://blog.myhro.info/
GitHub: https://github.com/myhro
LinkedIn: https://br.linkedin.com/in/myhro
Montes Claros - MG, Brasil

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

running tests against installed version of package Brian May <brian@linuxpenguins.xyz> - 2016-03-25 08:20 +0100
  Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-25 11:50 +0100
    Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 03:50 +0100
      Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 04:10 +0100
        Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-26 04:20 +0100
      Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-26 04:10 +0100
  Re: running tests against installed version of package Barry Warsaw <barry@debian.org> - 2016-03-25 23:20 +0100
    Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 04:00 +0100
      Re: running tests against installed version of package Barry Warsaw <barry@debian.org> - 2016-03-31 19:00 +0200
  Re: running tests against installed version of package Brian May <brian@linuxpenguins.xyz> - 2016-03-27 07:20 +0200
    egg-info executable files Brian May <bam@debian.org> - 2016-03-27 07:30 +0200
      Re: egg-info executable files Ben Finney <ben+debian@benfinney.id.au> - 2016-03-27 08:50 +0200
  Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-01 00:00 +0200
    Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-01 00:20 +0200
      Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-02 14:00 +0200
        Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-02 23:00 +0200
    Re: running tests against installed version of package Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-02 10:10 +0200
      Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-04-03 03:40 +0200
        Re: running tests against installed version of package Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-03 04:50 +0200
          Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-04-03 05:00 +0200
      Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-06 00:30 +0200
        Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-06 11:00 +0200

csiph-web