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?
请先登录再写评论。
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.
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.
Any progress here? This would be very useful to me, I spend a lot of time manually reformatting the results of 'copy reference'.
Hello,
Regrettably, no.
Please submit a feature request at https://youtrack.jetbrains.com/issues/PY
Information on how to use YouTrack: https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications
I submitted a feature request here:
https://youtrack.jetbrains.com/issue/PY-49998
I really hope this gets implemented! It would be soooooo cooool!