dbx-unittest2pytest
dbx-unittest2pytest copied to clipboard
creates syntax errors
- self.assertEqual(
- SomeMode.query()
+ assert SomeModel.query()
.filter(SomeModel.some_field.in_(tuple(v.id for v in other_model)))
- .count(),
- number,
- )
+ .count() == \
+ number
here it needs to re-wrap in a parenth form
yep - makes sense. Thanks for the report. Feel free to add a PR w/ a test!