subtests: can't show the diff window

Answered

There is no option to show the diff window If there are subtests in the test , e.g.

 

def test_1(self):
for i in ['a', 'b', 'c']:
with self.subTest(i=i):
self.assertEqual(i, 'c')
0
3 comments

Hi,

What is your PyCharm version? Please attach a screenshot showing the issue.

Kind regards,

Sergey

0
Avatar
Permanently deleted user

Hi Sergey,

PYCHARM 2018.2.4 professional edition, Build:#PY - 182.4505.26

Please find the screenshots below.. you will see that "View assertEquals Difference" option from the context menu is available only for 

test_simple_assert_equal

it is not available for:

test_with_sub_tests




0

Thanks.

We have filed a feature request about it to our issue tracker https://youtrack.jetbrains.com/issue/PY-32256, please vote for it and follow for future updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

Kind regards,

Sergey

0

Please sign in to leave a comment.