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

creates syntax errors

Open graingert opened this issue 6 years ago • 2 comments

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

graingert avatar Jun 21 '19 12:06 graingert

here it needs to re-wrap in a parenth form

graingert avatar Jun 21 '19 12:06 graingert

yep - makes sense. Thanks for the report. Feel free to add a PR w/ a test!

nipunn1313 avatar Jun 21 '19 22:06 nipunn1313