Comments (2)
Yes, you can do that. You just need to prefix the inner function correctly, e.g:
def describe_ensure_bits_count():
def describe_with_bits_count_more_than_number_bit_count():
def it_returns_unaltered_specified_number():
assert_that(ensure_bits_count(10, 16), is_(10))
If you really want to use just with_
, you can add this to your pytest.ini:
describe_prefixes = ('describe', 'with')
from pytest-describe.
Worked like a charm, thank you :)
from pytest-describe.
Related Issues (20)
- funcargs on describe functions HOT 2
- Shared behaviours HOT 5
- Shared behavior should have a recursive partial override behavior 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.