Skip to content

Commit

Permalink
you are getting annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMariday committed Oct 13, 2024
1 parent 2d80889 commit bcb1e86
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions test/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,26 +137,25 @@ class ComportPatch:
get_backend("fcmega")


# py_mini_racer uses import pkg_resources which is depreciated
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def test_pixelblaze(monkeypatch):

# mini_racer uses import pkg_resources which is depreciated
with pytest.warns(DeprecationWarning):
import pixelblaze

import pixelblaze

class PixelblazePatch:
def __init__(self, _):
pass
class PixelblazePatch:
def __init__(self, _):
pass

def setActivePatternByName(self, _):
pass
def setActivePatternByName(self, _):
pass

def getPixelCount(self):
return 1
def getPixelCount(self):
return 1

monkeypatch.setattr(pixelblaze, "Pixelblaze", PixelblazePatch)
monkeypatch.setattr(pixelblaze, "Pixelblaze", PixelblazePatch)

get_backend("pixelblaze", "1.2.3.4")
get_backend("pixelblaze", "1.2.3.4")


def test_invalid_or_none_backend():
Expand Down

0 comments on commit bcb1e86

Please sign in to comment.