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

Use RequestsWrapper #5037

Merged
merged 2 commits into from
Nov 26, 2019
Merged

Use RequestsWrapper #5037

merged 2 commits into from
Nov 26, 2019

Conversation

therve
Copy link
Contributor

@therve therve commented Nov 18, 2019

This uses the request wrapper instead of sessions directly, and tries to
simplify the tests.

self.appcenter = False
if sessions is None:
self.sessions = []
self.appcenter = appcenter
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a possible fix.

@codecov
Copy link

codecov bot commented Nov 18, 2019

Codecov Report

Merging #5037 into master will increase coverage by 8.39%.
The diff coverage is 92.55%.

Impacted Files Coverage Δ
cisco_aci/tests/test_cisco.py 100% <100%> (ø) ⬆️
cisco_aci/tests/common.py 100% <100%> (ø) ⬆️
cisco_aci/tests/test_capacity.py 100% <100%> (ø) ⬆️
cisco_aci/tests/test_tenant.py 96.82% <100%> (-0.4%) ⬇️
cisco_aci/tests/test_fabric.py 100% <100%> (ø) ⬆️
cisco_aci/datadog_checks/cisco_aci/cisco.py 64.91% <25%> (+0.25%) ⬆️
cisco_aci/datadog_checks/cisco_aci/api.py 82.14% <82.6%> (+5.78%) ⬆️
cisco_aci/tests/mock_sender.py 0% <0%> (-92.86%) ⬇️
vertica/tests/metrics.py
...checks_dev/tests/plugin/test_environment_runner.py
... and 814 more

3. Returns the corresponding file content
"""

fixture_dirs = ALL_FICTURE_DIR
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe we can fix the typo while we're here

@@ -5,6 +5,7 @@ envlist =
py{27,37}

[testenv]
usedevelop = true
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

ofek
ofek previously approved these changes Nov 24, 2019
Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Very nice refactor! Just needs a rebase

@therve therve merged commit 7db777a into master Nov 26, 2019
@therve therve deleted the therve/cisco-wrapper branch November 26, 2019 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants