Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Commit 28bc649

Browse files
committed
Tests: Replace bucky with pycallgraph as bucky got finally ported
1 parent 9df7e2a commit 28bc649

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/integration/test_integration.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def results(request):
173173
_nodejs = fixtures_factory('nodejs-semver-5.1.1-2.fc26')
174174
nodejs = fixtures_factory('_nodejs')
175175

176-
_bucky = fixtures_factory('python-bucky-2.2.2-9.fc28')
177-
bucky = fixtures_factory('_bucky')
176+
_pycallgraph = fixtures_factory('python-pycallgraph-0.5.1-13.fc28')
177+
pycallgraph = fixtures_factory('_pycallgraph')
178178

179179
_jsonrpc = fixtures_factory('jsonrpc-glib-3.27.4-1.fc28')
180180
jsonrpc = fixtures_factory('_jsonrpc')
@@ -185,7 +185,7 @@ def parametrize(*fixtrues):
185185

186186

187187
@parametrize('eric', 'six', 'admesh', 'tracer', 'copr', 'epub', 'twine', 'yum',
188-
'vdirsyncer', 'docutils', 'nodejs', 'bucky', 'jsonrpc')
188+
'vdirsyncer', 'docutils', 'nodejs', 'pycallgraph', 'jsonrpc')
189189
def test_number_of_results(results, request):
190190
# getting a fixture by name
191191
# https://github.com/pytest-dev/pytest/issues/349#issuecomment-112203541
@@ -195,7 +195,7 @@ def test_number_of_results(results, request):
195195
assert len(results) == 8
196196

197197

198-
@parametrize('eric', 'six', 'admesh', 'copr', 'epub', 'twine', 'bucky')
198+
@parametrize('eric', 'six', 'admesh', 'copr', 'epub', 'twine', 'pycallgraph')
199199
def test_two_three_passed(results, request):
200200
results = request.getfixturevalue(results)
201201
assert results['dist.python-versions.two_three'].outcome == 'PASSED'
@@ -238,7 +238,7 @@ def test_artifact_contains_two_three_and_looks_as_expected(results, request):
238238
''').strip().format(result.item) in artifact.strip()
239239

240240

241-
@parametrize('eric', 'epub', 'twine', 'vdirsyncer', 'bucky')
241+
@parametrize('eric', 'epub', 'twine', 'vdirsyncer', 'pycallgraph')
242242
def test_naming_scheme_passed(results, request):
243243
results = request.getfixturevalue(results)
244244
assert results['dist.python-versions.naming_scheme'].outcome == 'PASSED'
@@ -316,7 +316,7 @@ def test_requires_naming_scheme_contains_python(results, request):
316316

317317

318318
@parametrize('eric', 'six', 'admesh', 'tracer',
319-
'copr', 'epub', 'twine', 'bucky')
319+
'copr', 'epub', 'twine', 'pycallgraph')
320320
def test_executables_passed(results, request):
321321
results = request.getfixturevalue(results)
322322
task_result = results['dist.python-versions.executables']
@@ -370,7 +370,7 @@ def test_unvesioned_shebangs_passed(results, request):
370370
assert result.outcome == 'PASSED'
371371

372372

373-
@parametrize('yum', 'tracer', 'bucky')
373+
@parametrize('yum', 'tracer', 'pycallgraph')
374374
def test_unvesioned_shebangs_failed(results, request):
375375
results = request.getfixturevalue(results)
376376
result = results['dist.python-versions.unversioned_shebangs']
@@ -398,14 +398,14 @@ def test_artifact_contains_unversioned_shebangs_and_looks_as_expected(
398398
""").strip() in artifact.strip()
399399

400400

401-
@parametrize('bucky')
401+
@parametrize('pycallgraph')
402402
def test_unvesioned_shebangs_mangled_failed(results, request):
403403
results = request.getfixturevalue(results)
404404
result = results['dist.python-versions.unversioned_shebangs']
405405
assert result.outcome == 'FAILED'
406406

407407

408-
@parametrize('bucky')
408+
@parametrize('pycallgraph')
409409
def test_artifact_contains_mangled_unversioned_shebangs_and_looks_as_expected(
410410
results, request):
411411
results = request.getfixturevalue(results)
@@ -442,21 +442,21 @@ def test_py3_support_passed(results, request):
442442
assert task_result.outcome == 'PASSED'
443443

444444

445-
@parametrize('bucky')
445+
@parametrize('pycallgraph')
446446
def test_py3_support_failed(results, request):
447447
results = request.getfixturevalue(results)
448448
task_result = results['dist.python-versions.py3_support']
449449
assert task_result.outcome == 'FAILED'
450450

451451

452-
@parametrize('bucky')
452+
@parametrize('pycallgraph')
453453
def test_artifact_contains_py3_support_and_looks_as_expected(
454454
results, request):
455455
"""Test that py3_support check fails if the package is mispackaged.
456456
457-
NOTE: The test will start to fail as soon as python-bucky
457+
NOTE: The test will start to fail as soon as python-pycallgraph
458458
gets ported to Python 3 and its Bugzilla gets closed.
459-
See https://bugzilla.redhat.com/show_bug.cgi?id=1367012
459+
See https://bugzilla.redhat.com/show_bug.cgi?id=1309383
460460
"""
461461
results = request.getfixturevalue(results)
462462
result = results['dist.python-versions.py3_support']
@@ -471,7 +471,7 @@ def test_artifact_contains_py3_support_and_looks_as_expected(
471471
472472
Software MUST be packaged for Python 3 if upstream supports it.
473473
See the following Bugzilla:
474-
https://bugzilla.redhat.com/show_bug.cgi?id=1367012
474+
https://bugzilla.redhat.com/show_bug.cgi?id=1309383
475475
""").strip() in artifact.strip()
476476

477477

0 commit comments

Comments
 (0)