[py-dev] pytest tmpdir / test directories

holger krekel holger at merlinux.eu
Wed Jun 6 15:34:20 CEST 2012


On Wed, Jun 06, 2012 at 15:22 +0200, Ronny Pfannschmidt wrote:
> On 06/06/2012 03:18 PM, holger krekel wrote:
> >Hi Ronny, CCing py-dev again, was lost in between,
> >
> >On Wed, Jun 06, 2012 at 14:44 +0200, Ronny Pfannschmidt wrote:
> >>On 06/06/2012 02:35 PM, holger krekel wrote:
> >>>On Tue, Jun 05, 2012 at 08:18 +0200, Ronny Pfannschmidt wrote:
> >>>>Hi Holger,
> >>>>
> >>>>i was thinking of just naming the current tmpdir funcarg testdatadir,
> >>>>and implementing tmpdir in terms of testdatadir.ensure('tmpdir', dir=1)
> >>>
> >>>sure.  no immediate need to have this as a pytest core plugin, i guess.
> >>>
> >>
> >>this as meant as a patch to pytests tmpdir plugin
> >
> >Ah, i slowly get it.  If you get to the habit of providing a full example
> >of things at the beginning i might be able to understand things quicker.
> >
> >I am hesitant because it introduces another generic core funcarg which
> >needs explanation and examples for relatively little benefit.  I'd
> >rather suggest to think about extending reporting such that the paths
> >to interesting files for a (failing) test are presented, like in your
> >example the one to couchdb.dump
> 
> this would mean that each plugin needs a own way to manage test
> specific files + report them afterwards
> as opposed to just droping them into a dir thats just meant for that

Which plugins do you have in mind that directly could/would use it?

holger


> -- Ronny
> 
> >
> >best,
> >holger
> >
> >
> 



More information about the Pytest-dev mailing list