google / google/openhtf

Unit test not compatible with test.state

Open
#672 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
722
Forks
237
Avg merge
11h 31m
Merged PRs (30d)
4

Description

Spent some time wrangling with a unit test for a phase that accesses data stored in test.state.

Looks like the unit test framework creates a method local test state `test_state_` that is eventually passed to the phase being unit tested.

https://github.com/google/openhtf/blob/master/openhtf/util/test.py#L183

AFAIK, the unit test author does't have access to this `test_state_`. Would be useful to expose this because some phases rely upon test state (either on test.state or on measurements/attachments).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.