Skip to content

Commit

Permalink
RemoteRendering: Fix for pylint error: Use CaseInsensitiveEnumMeta (#…
Browse files Browse the repository at this point in the history
…30723)

* RemoteRendering: Fix for pylint error: Use CaseInsensitiveEnumMeta

* Disable pylint

We are hitting pylint-dev/pylint#5935
"TypeError: argument of type 'Const' is not iterable"
As we can't upgrade pylint the only way to fix this is to disable it entirely.

* Fix test resource creation

* Update release date.

* Update release date

* Migrate pylint fix to python 3

Try enabling pylint again

---------

Co-authored-by: Christopher Manthei <[email protected]>
  • Loading branch information
ChristopherManthei and Christopher Manthei authored Jul 6, 2023
1 parent d0c5d94 commit 9c61049
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Release History

## 1.0.0b3 (Unreleased)

## 1.0.0b2 (Unreleased)
## 1.0.0b2 (2023-07-03)

### Other Changes

- Added case-insensitive support for enums.
- Python 2.7 is no longer supported. Please use Python version 3.7 or later.

## 1.0.0b1 (2021-11-15)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

from enum import Enum

from azure.core import CaseInsensitiveEnumMeta

class RemoteRenderingApiVersion(str, Enum):
class RemoteRenderingApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Remote Rendering API versions supported by this package"""

#: This is the default version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# license information.
# --------------------------------------------------------------------------
import pytest
import pytest_asyncio

from azure.core.credentials import AzureKeyCredential
from azure.mixedreality.remoterendering import RemoteRenderingClient
Expand Down Expand Up @@ -91,7 +92,7 @@ def arr_client(account_info):
client.close()


@pytest.fixture
@pytest_asyncio.fixture
async def async_arr_client(account_info):
polling_interval = 10 if is_live() else 0
client = RemoteRenderingClientAsync(
Expand Down
2 changes: 1 addition & 1 deletion sdk/remoterendering/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"variables": {
"apiVersion": "2020-05-01",
"arrApiVersion": "2020-04-06-preview",
"arrApiVersion": "2021-03-01-preview",
"arrAccountName": "[concat(parameters('baseName'), '-arr-account')]",
"storageApiVersion": "2019-06-01",
"storageAccountName": "[parameters('baseName')]",
Expand Down

0 comments on commit 9c61049

Please sign in to comment.