Skip to content

Commit

Permalink
Fix tests that were no longer executed since switching to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bach-by committed Nov 5, 2021
1 parent 1a02f83 commit ebc498f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_wheeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from devpi_builder import wheeler


class BuilderTest(object):
class TestBuilder:
def test_build(self):
with wheeler.Builder() as builder:
wheel_file = builder('progressbar', '2.2')
Expand All @@ -29,7 +29,7 @@ def test_throws_custom_on_build_failure(self):
with wheeler.Builder() as builder:
with pytest.raises(wheeler.BuildError) as info:
builder('package_that_hopefully_does_not_exist', '99.999')
info.match(r'(Could not find a version that satisfies the requirement package[-_]that[-_]hopefully[-_]does[-_]not[-_]exist==99.999 \(from versions: \))|(Could not find any downloads that satisfy the requirement package-that-hopefully-does-not-exist==99.999)')
info.match(r'Failed to create wheel for package[-_]that[-_]hopefully[-_]does[-_]not[-_]exist')

def test_look_for_non_existing_wheel(self):
builder = wheeler.Builder()
Expand Down

0 comments on commit ebc498f

Please sign in to comment.