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


Groups > comp.lang.python > #107031

Re: How to parameterize unittests

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: How to parameterize unittests
Date Fri, 15 Apr 2016 18:28:21 +1000
Lines 10
Message-ID <mailman.7.1460708904.6324.python-list@python.org> (permalink)
References <570FA466.20003@rece.vub.ac.be> <mailman.106.1460642951.15650.python-list@python.org> <570fb1a3$0$1609$c3e8da3$5496439d@news.astraweb.com> <57108FAC.3020105@rece.vub.ac.be> <CAPTjJmreV+Ed722t7mUUC62L2u8gT-CE5K9ASGon1PHMYFdmTQ@mail.gmail.com> <5710A442.8000906@rece.vub.ac.be> <CAPTjJmpfaz=hp7OCHJ7s5-C53p3zouO18uoegMc7-FN0CEGwYg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de F46zenrCIob53bViK+qj9gFSUw+NsPDwSYNQHlo3MRxw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'rewrite': 0.07; 'tests,': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instantiate': 0.16; 'paste.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'tests.': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; '15,': 0.30; 'case,': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'cut': 0.67; 'directly.': 0.76; 'chrisa': 0.84; 'pardon': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=WfJS2VWzvS7xXtYoZRSYImDCF++dWIN41EncZAyWzA4=; b=YYPzjxp+VMsMv2hdZJiTl+SfqCLtHVSSmaFrbMjQfyj3JFwi6ilnR/cCv59OeX7AeS NqzoYTInbTa3S5YOYhoH+xF0YoYSxyqrRlh6qAeMWjzThVPvvwHKXygvojt5az2C7C/H 48d23/UYrSK5HXCYazaZVsv5UZNbSH5GNua6Q2jRaJGhKggithpdbZqgl00FgJa9sqOg /gmQWsRol4Oy+eQLALovdIbkjCVRfK2D6e1CBuskwgIroB6Bv/4Vk5QIFxZvRoC+B4+p bj3wGjOJ8RMZw0hHEokjg+2dfV3dVZMvqWkVOgSq3JtHLCOJ8ULblHvvcV5BoaKso6rv +98g==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=WfJS2VWzvS7xXtYoZRSYImDCF++dWIN41EncZAyWzA4=; b=CYIK6qTIwGXGNw7+fiOw94iKdXJB98zpcp8mYWe8q3KgqCrk3+/qrakceHg0pCH5Vp OuLfqkWJL/xL6G6fmQFaQ5SMvtCoTmEdndQXvBWz8N4z6mcG6vLOYuoosG3p0jcIt3nG IrdyIlSyUUxziXNAq1XOVe0c2QJMSbgMBwVn76GpJbLG1oLbWv9DNj2zX6pg25IOconh T8fI6WxwxLFQSor/SsWAV3sioQF8QTMN1XfwDP+2jdijx8FonqWlfyqcyXiyJoVQHP9x 8jliFWI6UnPNPH1QhzGfo5c0ZMLX47P3mf219Ml9NMiNI9Rve1jyx/O4RZsU8rGSkO+s 0zbw==
X-Gm-Message-State AOPr4FV9AksVbpBixqyRYgFuM1E6HnjPAMzw4YrA2Ehi2BxhRBfx4JPUKHX/zdDWhen8PLHXUz6lSBhBfshsQQ==
X-Received by 10.50.217.130 with SMTP id oy2mr3452476igc.94.1460708901216; Fri, 15 Apr 2016 01:28:21 -0700 (PDT)
In-Reply-To <5710A442.8000906@rece.vub.ac.be>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAPTjJmpfaz=hp7OCHJ7s5-C53p3zouO18uoegMc7-FN0CEGwYg@mail.gmail.com>
X-Mailman-Original-References <570FA466.20003@rece.vub.ac.be> <mailman.106.1460642951.15650.python-list@python.org> <570fb1a3$0$1609$c3e8da3$5496439d@news.astraweb.com> <57108FAC.3020105@rece.vub.ac.be> <CAPTjJmreV+Ed722t7mUUC62L2u8gT-CE5K9ASGon1PHMYFdmTQ@mail.gmail.com> <5710A442.8000906@rece.vub.ac.be>
Xref csiph.com comp.lang.python:107031

Show key headers only | View raw


On Fri, Apr 15, 2016 at 6:20 PM, Antoon Pardon
<antoon.pardon@rece.vub.ac.be> wrote:
> But the tests, at this moment, are not written to instantiate self.tree
> but to call avltree directly. So I have to rewrite these tests. That
> will IMO involve a lot of cut and paste.

Ah. In that case, it either involves a lot of editing (to make them
call self.tree), or monkey-patching the name 'avltree'.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-14 16:08 +0200
  Re: How to parameterize unittests Steven D'Aprano <steve@pearwood.info> - 2016-04-15 01:05 +1000
    Re: How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-15 08:52 +0200
    Re: How to parameterize unittests Chris Angelico <rosuav@gmail.com> - 2016-04-15 17:42 +1000
    Re: How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-15 10:20 +0200
      Re: How to parameterize unittests Steven D'Aprano <steve@pearwood.info> - 2016-04-15 19:10 +1000
        Re: How to parameterize unittests Michael Selik <michael.selik@gmail.com> - 2016-04-15 10:05 +0000
        Re: How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-15 13:43 +0200
        Re: How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-15 14:48 +0200
          Re: How to parameterize unittests Steven D'Aprano <steve@pearwood.info> - 2016-04-16 02:47 +1000
            Re: How to parameterize unittests Chris Angelico <rosuav@gmail.com> - 2016-04-16 03:51 +1000
            Re: How to parameterize unittests Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-16 22:37 +0200
    Re: How to parameterize unittests Serhiy Storchaka <storchaka@gmail.com> - 2016-04-15 11:24 +0300
    Re: How to parameterize unittests Chris Angelico <rosuav@gmail.com> - 2016-04-15 18:28 +1000
    Re: How to parameterize unittests Serhiy Storchaka <storchaka@gmail.com> - 2016-04-15 11:31 +0300
    Re: How to parameterize unittests Ben Finney <ben+python@benfinney.id.au> - 2016-04-15 18:35 +1000

csiph-web