Change Pycharm's Copy Reference path format

已回答

Is it possible to change default way of copy reference described in documentation  

https://www.jetbrains.com/help/pycharm/2016.3/cutting-copying-and-pasting.html 

Example:

If i wan't to run any test directly from terminal i need to Copy Reference.

class TestCustomCase(unittest.TestCase):
def test_true(self):
self.assertTrue(True)

If i copy path of test_true it will be something like:

tests.test_basic.TestCustomCase#test_true

but for pytest expected path is  tests/test_basic.py::TestCustomCase::test_true

May be there is any other way to run copy reference to run via pytest?

 

 

5

Unfortunately, there is no option to configure it. Please, feel free to file a feature request about it to Pycharm issue tracker: https://youtrack.jetbrains.com/issues/PY.

0
Avatar
Permanently deleted user

This seems like it should be a pretty straightforward plugin... I'm searching for such a plugin. Might need to write it if it doesn't exist.

1

Any progress here? This would be very useful to me, I spend a lot of time manually reformatting the results of 'copy reference'. 

0

I submitted a feature request here:

https://youtrack.jetbrains.com/issue/PY-49998

I really hope this gets implemented! It would be soooooo cooool!

0

请先登录再写评论。