Skip to content

Commit

Permalink
test: Fix tests
Browse files Browse the repository at this point in the history
Tests where broken since 8628f71 as they used a hardcoded version
number, which does not match the new code. Fix the and use the correct
version number in tests.

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
  • Loading branch information
nbuchwitz committed May 21, 2024
1 parent 8628f71 commit 8710783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_port_enumeration(mock_hub: MockHub, fp: pytest_subprocess.FakeProcess):

def test_no_devices(fp: pytest_subprocess.FakeProcess):
fp.register(["uhubctl", "-N"], stdout=["No compatible devices detected!".encode()])
fp.register(["uhubctl", "-v"], stdout="2.4.0-43-ge1e4d450")
fp.register(["uhubctl", "-v"], stdout="2.5.0")

hubs = uhubctl.discover_hubs()

Expand Down

0 comments on commit 8710783

Please sign in to comment.