forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
- Loading branch information
1 parent
a5ab3b8
commit 60ad18c
Showing
4 changed files
with
149 additions
and
10 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