Comments (5)
This also breaks nested fixtures and that sort of thing
from pytest-describe.
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.
I definitely think it's safer to not override anything. That seems reasonable.
from pytest-describe.
@ghostsquad Have you seen the patch in master?
from pytest-describe.
@ropez 💯 awesome! I'll download the latest version of pytest-describe today and play with the new changes. :)
from pytest-describe.
Related Issues (20)
- funcargs on describe functions HOT 2
- Shared behaviours HOT 5
- Nicer test output? HOT 3
- Support pytest version >= 4.1 HOT 8
- Persistent data among tests with django and pytest HOT 1
- Support pytest version >= 4.5 HOT 1
- Stacking `@pytest.mark.parametrize` does not work HOT 2
- PytestDeprecationWarning regarding DescribeBlock with pytest 5.4 HOT 16
- Create a changelog HOT 1
- Transfer repository to pytest-dev HOT 8
- Roadmap for version 1 and 2 HOT 13
- Describe plugin does not handle parameters when names are not specified as str HOT 1
- object has no attribute '_memoizedcall' on pytest 6.x HOT 5
- Marker "inheritance" not consistent with pytest behaviour HOT 1
- Fixtures as describe arguments HOT 2
- [enhancement] use a DocString to enhance the test report description
- Pycharm support HOT 4
- Test suite requires `py` package HOT 2
- DescribeBlocks not supported out of the box in VSCode Testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-describe.