1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/933a880e9acc/
Changeset: 933a880e9acc
User: hpk42
Date: 2013-08-16 11:41:31
Summary: refs issue290 -- move and refactor the test the string/int-id
parametrization test (Which xfails)
Affected #: 2 files
diff -r 78b7645e66c65118439b59d9b677e7ec71a05f8c -r
933a880e9acc5352fda851e5a9a5422c7e555202 testing/python/metafunc.py
--- a/testing/python/metafunc.py
+++ b/testing/python/metafunc.py
@@ -813,3 +813,20 @@
testdir.makepyfile(s)
reprec = testdir.inline_run()
reprec.assertoutcome(passed=2, skipped=2)
+
+
+ @pytest.mark.xfail(reason="issue 290")
+ def test_parametrize_ID_generation_string_int_works(self, testdir):
+ testdir.makepyfile("""
+ import pytest
+
+ @pytest.fixture
+ def myfixture():
+ return 'example'
+ @pytest.mark.parametrize(
+ 'limit', (0, '0'))
+ def test_limit(limit, myfixture):
+ return
+ """)
+ reprec = testdir.inline_run()
+ reprec.assertoutcome(passed=2)
diff -r 78b7645e66c65118439b59d9b677e7ec71a05f8c -r
933a880e9acc5352fda851e5a9a5422c7e555202
testing/test_parametrize_with_fixture.py
--- a/testing/test_parametrize_with_fixture.py
+++ b/testing/test_parametrize_with_fixture.py
@@ -1,26 +1,1 @@
import pytest
-
-
[email protected]()
-def test_parametrize(testdir):
- testdir.makepyfile("""
- import pytest
-
- @pytest.fixture
- def myfixture():
- return 'example'
-
-
- @pytest.mark.parametrize(
- 'limit',
- (
- 0,
- '0',
- 'foo',
- )
- )
- def test_limit(limit, myfixture):
- return
- """)
- reprec = testdir.runpytest()
- assert 'KeyError' in reprec.stdout
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pytest-commit