forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support multi-level nested classes pytest (microsoft#22681)
fixes microsoft#22520
- Loading branch information
1 parent
81c17e5
commit f2b0b7f
Showing
4 changed files
with
154 additions
and
11 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
pythonFiles/tests/pytestadapter/.data/test_multi_class_nest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
|
||
class TestFirstClass: | ||
class TestSecondClass: | ||
def test_second(self): # test_marker--test_second | ||
assert 1 == 2 | ||
|
||
def test_first(self): # test_marker--test_first | ||
assert 1 == 2 | ||
|
||
class TestSecondClass2: | ||
def test_second2(self): # test_marker--test_second2 | ||
assert 1 == 1 | ||
|
||
|
||
def test_independent(): # test_marker--test_independent | ||
assert 1 == 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters