Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests that proprety factories invoke host classes query and sendcmd methods #259

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

trappitsch
Copy link
Contributor

Test for property factories were extended to test the following:

  • Setter and getter work according to the expected format.
  • Assert that the property getter calls its host classes query method
  • Assert that the property setter calls its host classes sendcmd
    method

A test class is set up using a fixture. query and sendcmd are implemented in a simple way such that we can assert easily that they are called using mocker spies. After getting / setting values, the spies are used to assert that the call has taken place, as discussed in issue #258.

Test for property factories were extended to test the following:
- Setter and getter work according to the expected format.
- Assert that the property getter calls its host classes `query` method
- Assert that the property setter calls its host classes `sendcmd`
  method
@scasagrande
Copy link
Contributor

Wow you've been on a roll! I feel like I should mail you some of the cookies I made tonight instead of refreshing my pint branch.

@coveralls
Copy link

coveralls commented Sep 9, 2020

Coverage Status

Coverage increased (+0.03%) to 92.52% when pulling 248c3b8 on trappitsch:tests_utils_fns into e2c9bfb on Galvant:master.

@scasagrande
Copy link
Contributor

will merge in the morning

@scasagrande scasagrande merged commit 6d1214d into instrumentkit:master Sep 9, 2020
@trappitsch trappitsch deleted the tests_utils_fns branch September 9, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants