Skip to content

FAQ-D/TST class diagram for unit tests #7928

Open

Description

@josef-pkt

It is difficult to get an overview for large test modules like discrete\tests\test_discrete.py
pyreverse -o png -p statsmodels <path to>\statsmodels\statsmodels\discrete\tests\test_discrete.py

https://stackoverflow.com/questions/36432630/class-diagram-viewer-application-for-python3-source
needs to have graphviz installed to output png files.

Activity

  1. josef-pkt commented on Dec 6, 2021

    @josef-pkt
    MemberAuthor

    example
    at the bottom right of the diagram are classes that don't inherit, e.g. GeneralizedPoisson

    My current use case:
    I'm adding test_distribution to one of the base Check classes, CheckModelResults and I want to know which classes and models will inherit this unit test

    classes_statsmodels

  2. josef-pkt commented on Dec 7, 2021

    @josef-pkt
    MemberAuthor

    and the class diagram for discret_model itself
    I'm currently in branch of #7929, so this includes new get_distribution methods

    classes_statsmodels_discrete_model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions