Skip to content

Commit

Permalink
build(telemetry): Add python 3.11 to telemetry (#330)
Browse files Browse the repository at this point in the history
* Add 3.11 to telemetry

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Remove extra lint tests

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Add changes to RELEASE.md

Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>
Co-authored-by: Ahdra Merali <ahdra.merali@quantumblack.com>
Co-authored-by: Ahdra Merali <90615669+AhdraMeraliQB@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent b5cf7ee commit 7d092db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kedro-telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
uses: ./.github/workflows/unit-tests.yml
with:
plugin: kedro-telemetry
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
uses: ./.github/workflows/e2e-tests.yml
with:
plugin: kedro-telemetry
Expand Down
1 change: 1 addition & 0 deletions kedro-telemetry/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Upcoming release
* Added support for Python 3.11

# Release 0.2.5
* Migrate all project metadata to static `pyproject.toml`.
Expand Down
24 changes: 12 additions & 12 deletions kedro-telemetry/tests/test_masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ def fake_metadata(fake_root_dir):
class TestCLIMasking:
def test_get_cli_structure_raw(self, mocker, fake_metadata):
Module = namedtuple("Module", ["cli"])
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
mocker.patch("kedro.framework.cli.cli._is_project", return_value=True)
mocker.patch(
"kedro.framework.cli.cli.bootstrap_project", return_value=fake_metadata
)
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
kedro_cli = KedroCLI(fake_metadata.project_path)
raw_cli_structure = _get_cli_structure(kedro_cli, get_help=False)

Expand All @@ -89,14 +89,14 @@ def test_get_cli_structure_raw(self, mocker, fake_metadata):

def test_get_cli_structure_depth(self, mocker, fake_metadata):
Module = namedtuple("Module", ["cli"])
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
mocker.patch("kedro.framework.cli.cli._is_project", return_value=True)
mocker.patch(
"kedro.framework.cli.cli.bootstrap_project", return_value=fake_metadata
)
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
kedro_cli = KedroCLI(fake_metadata.project_path)
raw_cli_structure = _get_cli_structure(kedro_cli, get_help=False)
assert isinstance(raw_cli_structure["kedro"]["new"], dict)
Expand All @@ -121,14 +121,14 @@ def test_get_cli_structure_depth(self, mocker, fake_metadata):

def test_get_cli_structure_help(self, mocker, fake_metadata):
Module = namedtuple("Module", ["cli"])
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
mocker.patch("kedro.framework.cli.cli._is_project", return_value=True)
mocker.patch(
"kedro.framework.cli.cli.bootstrap_project", return_value=fake_metadata
)
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
kedro_cli = KedroCLI(fake_metadata.project_path)
help_cli_structure = _get_cli_structure(kedro_cli, get_help=True)

Expand Down

0 comments on commit 7d092db

Please sign in to comment.