+
Skip to content

Use pytest fixtures rather than instantiating new objects #507

@reece

Description

@reece
snafu$ for w in 'connect(' VariantMapper AssemblyMapper Normalizer Validator; do printf "%d $w\n" $(fgrep $w tests/*.py|wc -l); done

18 connect(
16 VariantMapper
15 AssemblyMapper
11 Normalizer
10 Validator

These are the minimum number of times we connect or instantiate these objects for tests. (The above excludes cases where we instantiate in loops, if any.)

Instead, use common fixtures that are created once per test session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载