Commits

Tetsuya Morimoto committed 7454bbf

updated version 0.7

Comments (0)

Files changed (3)

 ChangeLog
 =========
 
+0.7 (2012-10-20)
+----------------
+
+* the types in the arguments are specified by the types themselves (#1)
+
 0.6 (2012-03-29)
 ----------------
 * add generating data feature from function annotation
 
 ::
 
-    @pytest.mark.randomize(("i1", "int"), ("i2", "int"), ncalls=1)
+    @pytest.mark.randomize(i1=int, i2=int, ncalls=1)
     def test_generate_ints(i1, i2):
         pass
 
 More complex data structure::
 
     @pytest.mark.randomize(
-        ("d1", "{'x': int, 'y': [str, (int, int)], 'z': {'x': str}}")
+        d1={'x': int, 'y': [str, (int, int)], 'z': {'x': str}}
     )
     def test_generate_dict(d1):
         pass
 ::
 
     @pytest.mark.parametrize("prime", [2, 3, 5])
-    @pytest.mark.randomize(("i1", "int"), ("f1", "float"), ncalls=1)
+    @pytest.mark.randomize(i1=int, f1=float, ncalls=1)
     def test_gen_parametrize_with_randomize_int_float(prime, i1, f1):
         pass
 
 
 ::
 
-    @pytest.mark.randomize(("i1", "int"), fixed_length=8)
+    @pytest.mark.randomize(i1=int, fixed_length=8)
     def test_generate_arg_anns_mixed(i1, s1: str):
         pass
 
 See also: `PEP 3107 -- Function Annotations`_
 
 .. _PEP 3107 -- Function Annotations: http://www.python.org/dev/peps/pep-3107/
+
+Backward Compatibility
+======================
+
+Under 0.6 version, types were specified by strings containing the name
+of the type. It's still supported if you like.
+
+::
+
+    @pytest.mark.randomize(("i1", "int"), ("i2", "int"), ncalls=1)
 from setuptools import setup
 
-VERSION = "0.6"
+VERSION = "0.7"
 REQUIRES = ["pytest>=2.2", "distribute"]
 
 try:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.