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

Factorize common tests #10

Merged
merged 2 commits into from
Dec 30, 2020

Conversation

tetienne
Copy link

@tetienne tetienne commented Dec 18, 2020

A lot of tests were duplicated between DSM 5 and 6. And some were added for DSM 6 but not for DSM 5.

I have regrouped the common test in a single class. Some remaining ones depend on the mocked hardware but use the same logic. I will with another PR to factorize them too.

@tetienne tetienne requested a review from Quentame as a code owner December 18, 2020 10:38
@tetienne
Copy link
Author

There are now 68 tests vs 59 previously.

@@ -83,3 +83,6 @@ desktop.ini

# Virtual env
.venv

node_modules
package-lock.json
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to prettier.

assert dsm._device_token is None

@pytest.mark.parametrize("version", [5, 6])
def test_connection_failed(self, version):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be split later in several tests.

@oncleben31 oncleben31 merged commit 9a81d6e into hacf-fr:master Dec 30, 2020
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.

2 participants