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

Improve unit tests. #270

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Improve unit tests. #270

wants to merge 6 commits into from

Conversation

badcure
Copy link
Collaborator

@badcure badcure commented Aug 10, 2019

A couple of things I wanted to do in this PR:

  • Add tox to allow for easier local testing.
  • Start using requirement files: Makes it easier for testing various version combinations in tox
  • Add testing of the minimum supported versions of each library. In case changes break old versions.
  • Started creating unit tests based winrm's responses with requests_mock library
  • Started creating tests for with and without the extras.

The goal of this to be more comfortable with the winrm interaction in the long run.

@coveralls
Copy link

Coverage Status

Coverage increased (+6.5%) to 82.972% when pulling f6913d4 on badcure:add_tox_testing into fe59460 on diyan:master.

'kerberos:sys_platform=="win32"': ['winkerberos>=0.5.0'],
'kerberos:sys_platform!="win32"': ['pykerberos>=1.2.1,<2.0.0']
},
install_requires=req_deps_list,

Choose a reason for hiding this comment

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

don't do this, tox can use the extras and install_requires, just make sure to set `skipsdist = False

Choose a reason for hiding this comment

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

then you can do:

[testenv]
extras = test,credssp,kerberos

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