canonical / hardware-observer-operator

A charm to setup prometheus exporter for IPMI, RedFish and RAID devices from different vendors.
Apache License 2.0
7 stars 14 forks source link

fix: Pin pytest version #232

Closed dashmage closed 2 months ago

dashmage commented 2 months ago

When using pytest-8.2.0 with async-0.21.1, func tests throw an error:

AttributeError: 'FixtureDef' object has no attribute 'unittest'

Refer: https://github.com/charmed-kubernetes/pytest-operator/issues/131

Therefore, the pytest version is pinned till the issue is resolved upstream.

jneo8 commented 2 months ago

Is this still needed? https://github.com/charmed-kubernetes/pytest-operator/issues/131

dashmage commented 2 months ago

Is this still needed? charmed-kubernetes/pytest-operator#131

That was a quick fix! I just verified that the tests are running successfully with pytest-asyncio==0.21.2 on this action run. So I'll close this PR since it's not needed anymore.