Skip to content

Commit 3946757

Browse files
committed
stop pyright's complaints
Haven't touched these files in this feature branch, yet CI complains...
1 parent a566828 commit 3946757

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/understack-workflows/tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def project_data(domain_id: uuid.UUID, project_id: uuid.UUID):
5252

5353

5454
@pytest.fixture
55-
def os_conn(project_data: dict) -> openstack.connection.Connection:
55+
def os_conn(project_data: dict) -> openstack.connection.Connection: # pyright: ignore[reportAttributeAccessIssue]
5656
def _get_project(project_id):
5757
if project_id == project_data["id"].hex:
5858
data = {
@@ -67,10 +67,10 @@ def _get_project(project_id):
6767
"domain_id": "default",
6868
}
6969
else:
70-
raise openstack.exceptions.NotFoundException
71-
return openstack.identity.v3.project.Project(**data)
70+
raise openstack.exceptions.NotFoundException # pyright: ignore[reportAttributeAccessIssue]
71+
return openstack.identity.v3.project.Project(**data) # pyright: ignore[reportAttributeAccessIssue]
7272

73-
conn = MagicMock(spec_set=openstack.connection.Connection)
73+
conn = MagicMock(spec_set=openstack.connection.Connection) # pyright: ignore[reportAttributeAccessIssue]
7474
conn.identity.get_project.side_effect = _get_project
7575
return conn
7676

0 commit comments

Comments
 (0)