推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
simple2025
0D
V2EX  ›  Python

关于 py 单元测试 测试案例的继承问题

  •  
  •   simple2025 · Dec 18, 2020 · 2041 views
    This topic created in 2108 days ago, the information mentioned may be changed or developed.

    现在又 TestA 和 TestB 两个类,两个都继承自 TestMixin,其中, TestMixin 大概有 test_case_a, 和 test_case_b, 但是怎么跑起来的时候感觉好像 TestA 没有运行 TestMixin 里面的 test_case_a 呢?

    3 replies  •  2020-12-19 11:16:43 +08:00
    abersheeran
        1
    abersheeran  
       Dec 18, 2020
    说框架、完整的继承链。还有,别自己感觉,到底是运行了还是没有。你感觉没运行,解释器不一定这么想。

    你这么简单一说,谁能知道到底什么问题?学学提问的艺术。
    simple2025
        2
    simple2025  
    OP
       Dec 19, 2020
    @abersheeran 确实是可以的,但是我怎么记得之前不行呢
    oahebky
        3
    oahebky  
       Dec 19, 2020 via Android
    劝退
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2714 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:13 · PVG 15:13 · LAX 00:13 · JFK 03:13
    ♥ Do have faith in what you're doing.