From holger at merlinux.eu Sun Jun 1 12:09:31 2014 From: holger at merlinux.eu (holger krekel) Date: Sun, 1 Jun 2014 10:09:31 +0000 Subject: [pytest-dev] logo is online Message-ID: <20140601100931.GF20336@merlinux.eu> Hi all, i just put the new pytest logo online: http://pytest.org/latest/ Wondering if it's too colorful and we just use the B&W version. best and thanks for the feedback everyone, holger From nicoddemus at gmail.com Sun Jun 1 16:34:34 2014 From: nicoddemus at gmail.com (Bruno Oliveira) Date: Sun, 1 Jun 2014 11:34:34 -0300 Subject: [pytest-dev] logo is online In-Reply-To: <20140601100931.GF20336@merlinux.eu> References: <20140601100931.GF20336@merlinux.eu> Message-ID: Hi, In my opinion B&W would fit better with the rest of the site. Cheers. On Sun, Jun 1, 2014 at 7:09 AM, holger krekel wrote: > Hi all, > > i just put the new pytest logo online: > > http://pytest.org/latest/ > > Wondering if it's too colorful and we just use the B&W version. > > best and thanks for the feedback everyone, > holger > > _______________________________________________ > Pytest-dev mailing list > Pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.schulze at gmx.net Sun Jun 1 21:02:01 2014 From: florian.schulze at gmx.net (Florian Schulze) Date: Sun, 01 Jun 2014 21:02:01 +0200 Subject: [pytest-dev] logo is online In-Reply-To: <20140601100931.GF20336@merlinux.eu> References: <20140601100931.GF20336@merlinux.eu> Message-ID: I like the colored version, but maybe the sites colors should be adjusted to use colors from the logo now. Regards, Florian Schulze On 1 Jun 2014, at 12:09, holger krekel wrote: > Hi all, > > i just put the new pytest logo online: > > http://pytest.org/latest/ > > Wondering if it's too colorful and we just use the B&W version. > > best and thanks for the feedback everyone, > holger > > _______________________________________________ > Pytest-dev mailing list > Pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev From lac at openend.se Mon Jun 2 07:32:42 2014 From: lac at openend.se (Laura Creighton) Date: Mon, 02 Jun 2014 07:32:42 +0200 Subject: [pytest-dev] logo is online In-Reply-To: Message from holger krekel of "Sun, 01 Jun 2014 10:09:31 -0000." <20140601100931.GF20336@merlinux.eu> References: <20140601100931.GF20336@merlinux.eu> Message-ID: <201406020532.s525Wg4A011347@fido.openend.se> In a message of Sun, 01 Jun 2014 10:09:31 -0000, holger krekel writes: >Hi all, > >i just put the new pytest logo online: > >http://pytest.org/latest/ > >Wondering if it's too colorful and we just use the B&W version. > >best and thanks for the feedback everyone, >holger I think it looks good, but I would change the colour used for the links on the page to be exactly the same as the yellow in the pipe. Laura From harro.vanderklauw at paylogic.com Mon Jun 2 08:27:31 2014 From: harro.vanderklauw at paylogic.com (Harro van der Klauw) Date: Mon, 2 Jun 2014 08:27:31 +0200 Subject: [pytest-dev] logo is online In-Reply-To: <201406020532.s525Wg4A011347@fido.openend.se> References: <20140601100931.GF20336@merlinux.eu> <201406020532.s525Wg4A011347@fido.openend.se> Message-ID: Made something that I think looks nice. (Just some quick inspector tweaking) Header (h1) is the orange color. Links in the body are blue and links in the sidebar are green. The red was a bit too much to put in there, maybe it can be used for warnings in the documentation. ? On 2 June 2014 07:32, Laura Creighton wrote: > In a message of Sun, 01 Jun 2014 10:09:31 -0000, holger krekel writes: > >Hi all, > > > >i just put the new pytest logo online: > > > >http://pytest.org/latest/ > > > >Wondering if it's too colorful and we just use the B&W version. > > > >best and thanks for the feedback everyone, > >holger > > I think it looks good, but I would change the colour used for the links on > the page to be exactly the same as the yellow in the pipe. > > Laura > _______________________________________________ > Pytest-dev mailing list > Pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-06-02 08:24:45.png Type: image/png Size: 153336 bytes Desc: not available URL: From holger at merlinux.eu Mon Jun 2 08:58:14 2014 From: holger at merlinux.eu (holger krekel) Date: Mon, 2 Jun 2014 06:58:14 +0000 Subject: [pytest-dev] logo is online In-Reply-To: References: <20140601100931.GF20336@merlinux.eu> <201406020532.s525Wg4A011347@fido.openend.se> Message-ID: <20140602065814.GB30349@merlinux.eu> I am not sure about colors everywhere. For now, i went with only black text (links get underlined). Second best i like orange links as suggested from Laura but i wouldn't like to go for more colors in the text. best, holger On Mon, Jun 02, 2014 at 08:27 +0200, Harro van der Klauw wrote: > Made something that I think looks nice. (Just some quick inspector tweaking) > Header (h1) is the orange color. > Links in the body are blue and links in the sidebar are green. > The red was a bit too much to put in there, maybe it can be used for > warnings in the documentation. > > > ? > > > On 2 June 2014 07:32, Laura Creighton wrote: > > > In a message of Sun, 01 Jun 2014 10:09:31 -0000, holger krekel writes: > > >Hi all, > > > > > >i just put the new pytest logo online: > > > > > >http://pytest.org/latest/ > > > > > >Wondering if it's too colorful and we just use the B&W version. > > > > > >best and thanks for the feedback everyone, > > >holger > > > > I think it looks good, but I would change the colour used for the links on > > the page to be exactly the same as the yellow in the pipe. > > > > Laura > > _______________________________________________ > > Pytest-dev mailing list > > Pytest-dev at python.org > > https://mail.python.org/mailman/listinfo/pytest-dev > > From florian.schulze at gmx.net Mon Jun 2 09:36:39 2014 From: florian.schulze at gmx.net (Florian Schulze) Date: Mon, 02 Jun 2014 09:36:39 +0200 Subject: [pytest-dev] logo is online In-Reply-To: <20140602065814.GB30349@merlinux.eu> References: <20140601100931.GF20336@merlinux.eu> <201406020532.s525Wg4A011347@fido.openend.se> <20140602065814.GB30349@merlinux.eu> Message-ID: I think you should go for the orange links, the black ones don't stand out enough. Regards, Florian Schulze On 2 Jun 2014, at 8:58, holger krekel wrote: > I am not sure about colors everywhere. For now, i went with only > black > text (links get underlined). Second best i like orange links as > suggested > from Laura but i wouldn't like to go for more colors in the text. > > best, > holger > > On Mon, Jun 02, 2014 at 08:27 +0200, Harro van der Klauw wrote: >> Made something that I think looks nice. (Just some quick inspector >> tweaking) >> Header (h1) is the orange color. >> Links in the body are blue and links in the sidebar are green. >> The red was a bit too much to put in there, maybe it can be used for >> warnings in the documentation. >> >> >> ? >> >> >> On 2 June 2014 07:32, Laura Creighton wrote: >> >>> In a message of Sun, 01 Jun 2014 10:09:31 -0000, holger krekel >>> writes: >>>> Hi all, >>>> >>>> i just put the new pytest logo online: >>>> >>>> http://pytest.org/latest/ >>>> >>>> Wondering if it's too colorful and we just use the B&W version. >>>> >>>> best and thanks for the feedback everyone, >>>> holger >>> >>> I think it looks good, but I would change the colour used for the >>> links on >>> the page to be exactly the same as the yellow in the pipe. >>> >>> Laura >>> _______________________________________________ >>> Pytest-dev mailing list >>> Pytest-dev at python.org >>> https://mail.python.org/mailman/listinfo/pytest-dev >>> > > > _______________________________________________ > Pytest-dev mailing list > Pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev From lac at openend.se Mon Jun 2 11:17:08 2014 From: lac at openend.se (Laura Creighton) Date: Mon, 02 Jun 2014 11:17:08 +0200 Subject: [pytest-dev] logo is online In-Reply-To: Message from Harro van der Klauw of "Mon, 02 Jun 2014 08:27:31 +0200." References: <20140601100931.GF20336@merlinux.eu> <201406020532.s525Wg4A011347@fido.openend.se> Message-ID: <201406020917.s529H8pU016728@fido.openend.se> In a message of Mon, 02 Jun 2014 08:27:31 +0200, Harro van der Klauw writes: >Made something that I think looks nice. (Just some quick inspector tweaking) >Header (h1) is the orange color. >Links in the body are blue and links in the sidebar are green. >The red was a bit too much to put in there, maybe it can be used for >warnings in the documentation. > That _does_ look very nice. Laura From Anshul.Gupta at riverbed.com Mon Jun 2 18:05:19 2014 From: Anshul.Gupta at riverbed.com (Anshul Gupta) Date: Mon, 2 Jun 2014 16:05:19 +0000 Subject: [pytest-dev] Data driven testing using pytest Message-ID: <9B37A835D42C47409291E5A404F4590326969277@sfo1exc-mbxp11.nbttech.com> Hi, I am new to the pytest and still exploring it. I have been searching extensively for data driven testing modules provided by pytest but could not find anything substantial for it. I did came across that using parametrize it can be done but when I am trying to pass data from fixture to the pytest.mark.paramaetrize it does not accept it, below it the small snippet that I am doing. @pytest.fixture Def data(): Return data @pytest.mark.parametrize(?input?,data): Def test_ddt(input): Print input Executing it says that NameError: name 'data' is not defined Please do let me know what is the most appropriate and efficient way of achieving data driven testing using pytest. Thanks in advance!! Regards, Anshul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nikolaus at rath.org Tue Jun 3 04:32:45 2014 From: Nikolaus at rath.org (Nikolaus Rath) Date: Mon, 02 Jun 2014 19:32:45 -0700 Subject: [pytest-dev] Weird backtrace involving py/_code/source.py Message-ID: <87lhtevi2a.fsf@vostro.rath.org> Hello, I am trying to debugging a rather peculiar failure of one of my test cases. I nailed it down to a function being called by a thread that shouldn't be calling it, and without any apparent caller. When I set a breakpoint in the function using pdb, I get the following traceback: > /home/nikratio/in-progress/s3ql/src/dugong/__init__.py(1249)disconnect() -> if self._sock: (Pdb) bt /home/nikratio/in-progress/s3ql/src/s3ql/backends/common.py(1050)close() -> self.fh.close() /home/nikratio/in-progress/s3ql/src/s3ql/backends/s3c.py(686)close() -> self.backend.conn.disconnect() > /home/nikratio/in-progress/s3ql/src/dugong/__init__.py(1249)disconnect() -> if self._sock: (Pdb) bt Suffice to say that there should be no thread that starts running in common.py:1050. I was mystified. I then tried to look at the same call stack in Eclipse using PyDev. Here, I got several additional entries. I put a screenshot on http://www.rath.org/res/Eclipse.png. It seems that somehow my function gets called from getstatementrange_ast() in py/_code/source.py, and from there on upwards its only py.test and py related files. Does this make any sense to anyone? Why is py calling into random places in my code? I am using assertion rewriting. Best, Nikolaus -- GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F ?Time flies like an arrow, fruit flies like a Banana.? From bhoel at despammed.com Wed Jun 4 16:07:46 2014 From: bhoel at despammed.com (Berthold =?utf-8?Q?H=C3=B6llmann?=) Date: Wed, 04 Jun 2014 16:07:46 +0200 Subject: [pytest-dev] Data driven testing using pytest References: <9B37A835D42C47409291E5A404F4590326969277@sfo1exc-mbxp11.nbttech.com> Message-ID: <87lhtc7op9.fsf@pchoel.xn--hllmanns-n4a.de> Anshul Gupta writes: > Hi, > > I am new to the pytest and still exploring it. I have been searching extensively for data driven testing modules provided by pytest but could not find anything substantial for it. I did came across that using parametrize it can be done but when I am trying to pass data from fixture to the pytest.mark.paramaetrize it does not accept it, below it the small snippet that I am doing. > > @pytest.fixture > Def data(): > Return data > > @pytest.mark.parametrize(?input?,data): > Def test_ddt(input): > Print input > > Executing it says that NameError: name 'data' is not defined Hi, import pytest @pytest.fixture def data(): return ("data", ) @pytest.mark.parametrize("input", data()) def test_ddt(input): print input is working for me, but I guess the better way is either @pytest.fixture(params=("data", )) def data(request): return request.param def test_ddt(data): print data or perhaps @pytest.mark.parametrize("input", ("data", )) def test_ddt2(input): print input Regards, Berthold > > Please do let me know what is the most appropriate and efficient way >of achieving data driven testing using pytest. > > Thanks in advance!! > > Regards, > Anshul > _______________________________________________ > Pytest-dev mailing list > Pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: