dbx-unittest2pytest icon indicating copy to clipboard operation
dbx-unittest2pytest copied to clipboard

Convert unittest asserts to pytest rewritten asserts.

Results 4 dbx-unittest2pytest issues
Sort by recently updated
recently updated
newest added

```patch - self.assertEqual( - SomeMode.query() + assert SomeModel.query() .filter(SomeModel.some_field.in_(tuple(v.id for v in other_model))) - .count(), - number, - ) + .count() == \ + number ```

help wanted

There is already an existing [unittest2pytest](https://github.com/pytest-dev/unittest2pytest/) project under the `pytest-dev` umbrella by @htgoebel, which has the same name and works via lib2to3 as well. Unfortunately, that's quite confusing - and...

Before: ``` python self.assertEqual(a or b) ``` After: ``` python assert a or \ b) ``` The code still parses, so the bug is simply that the whitespace looks a...

Code like this: ``` python self.assertEqual( # Comment about a a, # Comment about b b, ) ``` Currently chokes the fixer parser, so we choose to skip them. If...