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

ci(test): add python 3.11 to testing matrix #104

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- windows
- macos
py:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
Expand Down
19 changes: 0 additions & 19 deletions azext_edge/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import sys
import io

from azure.cli.testsdk import LiveScenarioTest
from contextlib import contextmanager


Expand Down Expand Up @@ -40,21 +39,3 @@ def close(self):
finally:
sys.stdout = _stdout
buffer_tee.close()


class CaptureOutputLiveScenarioTest(LiveScenarioTest):
def __init__(self, test_scenario):
super(CaptureOutputLiveScenarioTest, self).__init__(test_scenario)

# TODO: @digimaun - Maybe put a helper like this in the shared lib, when you create it?
def command_execute_assert(self, command, asserts=[]):
from . import capture_output

with capture_output() as buffer:
self.cmd(command, checks=None)
output = buffer.get_output()

for a in asserts:
assert a in output

return output
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ deps =
{[base]deps}
# azure-cli deps
azure-cli
# azure cli test sdk
azure-cli-testsdk
setenv =
PYTHONPATH={envsitepackagesdir}/azure-cli-extensions/azure-iot-ops
commands =
Expand Down