Comments (2)
@FBruzzesi True 💯
Nice catch 👌
Thanks so much.
from dirty-equals.
You are really close to the solution. IsList
doesn't take a list object as input, so you just need to unpack the values:
assert fix_err == IsList(
*[IsPartialDict(errDict) for errDict in res_err],
check_order=False,
)
from dirty-equals.
Related Issues (20)
- PyPy3.9 7.3.10 test regression: tests/test_inspection.py::test_has_attributes[-HasAttributes(a=1, b=2, spam=AnyThing)] HOT 3
- dirty isinstance HOT 5
- `IsFloat` should have an `exact` argument
- A way to ensure that all elements in a sequence match constraint HOT 2
- `IsInstance` does not work for Pydantic BaseModels HOT 3
- `IsDataclass` type HOT 4
- DeprecationWarning for datetime.utcfromtimestamp() in Python 3.12 HOT 2
- IsUrl seems to be broken with pydantic-2 HOT 7
- objects with multiline repr cause pytest to print a diff HOT 4
- Lacking a dirty way to count elements HOT 6
- 0.7.0 was not published to PyPI HOT 3
- `IsJson(*)` and `IsUUID(*)` reprs can't be evaluated HOT 2
- Makefile command for testing in local development HOT 1
- 0.7.0: pytest test suite not ready for `pydantic` 2.x HOT 1
- Enforce clearer usage of `IsList()` etc. with no arguments HOT 1
- test_is_datetime fails on alpine linux edge x86_64 HOT 3
- RFE: use `zoneinfo` instead of `pytz` HOT 3
- Weird import conflict with xarray and typing-extensions on Python 3.8 HOT 3
- Maintenance status of dirty_equals? HOT 4
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 dirty-equals.