doesn't handle nested classes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pythoscope |
Fix Released
|
Medium
|
Michal Kwiatkowski |
Bug Description
Pythoscope doesn't understand nested classes.
Test Code:
class mainClass:
def __init__(self): pass
def mainClassMethod
class subClass:
def __init__(self): pass
def subClassMethod(
This generates:
import unittest
class TestMainClass(
def test_object_
assert False # TODO: implement your test here
def test_mainClassM
assert False # TODO: implement your test here
def test_object_
assert False # TODO: implement your test here
def test_subClassMe
assert False # TODO: implement your test here
if __name__ == '__main__':
unittest.main()
There is no differentiation between class and subclass in test case. Specifically the object_
Paul
Fixed in revision 64.