Git Product home page Git Product logo

Comments (5)

ghostsquad avatar ghostsquad commented on May 26, 2024

This also breaks nested fixtures and that sort of thing

from pytest-describe.

ropez avatar ropez commented on May 26, 2024

Wow. It didn't even occur to me to nest describe blocks inside shared behaviors. I'm actually quite happy that this seems to work!

About being able to override describe blocks in the share behavior by using the same function name in the referencing block. Again, I don't think it would occur to me. I would never expect the inner tests to be overridden individually like you describe. I think I would expect that the blocks could not interfere with each other, and the outcome of the test above would be:

2 failed 1 passed

And the verbose output would be something like this:

describe_dog::[a_duck]describe_speak::it_quacks_once  FAILED
describe_dog::[a_duck]describe_speak::it_quacks  FAILED
describe_dog::describe_speak::it_quacks  PASSED

from pytest-describe.

ghostsquad avatar ghostsquad commented on May 26, 2024

I definitely think it's safer to not override anything. That seems reasonable.

from pytest-describe.

ropez avatar ropez commented on May 26, 2024

@ghostsquad Have you seen the patch in master?

from pytest-describe.

ghostsquad avatar ghostsquad commented on May 26, 2024

@ropez 💯 awesome! I'll download the latest version of pytest-describe today and play with the new changes. :)

from pytest-describe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.