Hello.
I wrote the following snippets in order to to auto-complete common idioms of python unittests:
ae self.assertEqual(a, b)
at self.assertTrue(x)
ar self.assertRaises(exc, fun)
In some projects though I use pytest rather than unittest, so I would like to produce this result instead:
ae assert a == 0
at assert x
ar with pytest.raises(exc): fun()
It seems to me there is no way to use snippets in such a way, correct? What could be a strategy to make snippets a bit less static and more dynamic? I could imagine tons of other uses cases other than just this one.