Carles Barrobés
5e81603cb2
Merge pull request #49 from eharney/master
...
Use raw string for regex
2017-07-12 23:33:21 +02:00
Eric Harney
173190741f
Use raw string for regex
...
This issues a DeprecationWarning on python 3.6
due to \W not being a valid escape character in
regular strings.
2017-07-11 17:32:59 -04:00
Carles Barrobés
19e9b28724
Bump version to 1.1.1
2016-10-07 21:13:50 +02:00
Carles Barrobés
7198dfbd9a
Merge pull request #45 from nedbat/master
...
Set __wrapped__ for Python 2
2016-10-07 21:06:10 +02:00
Ned Batchelder
15c28ff077
Set __wrapped__ for Python 2
2016-10-07 14:56:06 -04:00
Carles Barrobés
969c9153f6
Merge pull request #40 from ankostis/iterable_data
...
Add `@idata(iterable)` decorator-function.
2016-09-10 17:46:16 +02:00
Kostis Anagnostopoulos
347fe29fe8
Add `@idata(iterable)` decorator-function.
...
The purpose is to avoid::
@data(*[a for a in foo if a > 0])
2016-08-07 21:27:01 +02:00
Carles Barrobés
2d0a689d3a
Merge pull request #43 from pradyunsg/patch-1
...
Include more files in generated tarballs
2016-05-31 20:33:20 +02:00
Pradyun
d7746e0250
Include more files in generated tarballs
...
Add documentation files and test files to setuptools generated tarball for PyPI consumption.
2016-05-31 23:42:57 +05:30
Carles Barrobés
70cd085c8e
Bump version to 1.1.0
2016-05-31 09:26:47 +02:00
Carles Barrobés
115a805476
Merge pull request #42 from pradyunsg/master
...
Add basic support for YAML data files
2016-05-30 10:24:07 +02:00
Pradyun S. Gedam
3481ef1457
Fix copy-paste error
...
Documentation only change, skip ci
2016-05-30 13:51:48 +05:30
Pradyun S. Gedam
53f5528e12
Refactor error functions in process_file_data
2016-05-30 13:37:06 +05:30
Pradyun S. Gedam
9abb569d2e
Fix the no-YAML installed test
2016-05-30 13:36:14 +05:30
Pradyun S. Gedam
de3785953a
Split process_file_data into 2 functions
2016-05-30 11:22:56 +05:30
Pradyun S. Gedam
b7dbfc68de
Fix Flake8 warnings
2016-05-30 11:04:29 +05:30
Pradyun S. Gedam
ac205c670f
Unconditionally use PyPI mock
2016-05-30 11:01:39 +05:30
Pradyun S. Gedam
0c148b3f39
Add mock to test requirements
2016-05-30 10:59:51 +05:30
Pradyun S. Gedam
2fb91a7eaf
Catch ImportErrors and improve coverage metrics
2016-05-30 10:58:03 +05:30
Pradyun S. Gedam
9dbe8022d9
Add more tests for YAML data files
...
Specifically, for YAML files are missing and missing PyYAML support.
2016-05-30 10:55:23 +05:30
Pradyun S. Gedam
7d75185607
Document the YAML support
2016-05-29 19:28:17 +05:30
Pradyun S. Gedam
570b329752
Variable naming changes
2016-05-29 18:12:55 +05:30
Pradyun S. Gedam
b3a6fcc9a9
Load the YAML data safely
...
It would disallow for arbitary objects from being created and makes the
file-loading safe.
2016-05-29 18:08:44 +05:30
Pradyun S. Gedam
1104edcf6d
Properly handle file object
...
Change behaviour to close the data file once work is done.
Also, pass the data file object is directly to the loaders, instead of
reading and buffering the entire file and passing the buffer.
2016-05-29 18:07:22 +05:30
Pradyun S. Gedam
f77fd6a0e8
Fix Flake8 warnings
2016-05-27 12:17:06 +05:30
Pradyun S. Gedam
28cba8f99d
Add PyYAML as a test dependency
2016-05-27 12:10:51 +05:30
Pradyun S. Gedam
4aa4653253
Add basic support for YAML data files
...
Add support for YAML files, when PyYAML is installed. If PyYAML is not
installed, any YAML file_data functions error out.
Only files ending with .yml or .yaml are considered to be YAML files.
All other files are loaded as JSON files.
2016-05-27 11:58:08 +05:30
Carles Barrobés
72fbfed12d
Bump version number
2016-05-25 17:38:01 +02:00
Carles Barrobés
3dc927d8e0
Merge pull request #41 from felixonmars/py35
...
Note explicit support for Python 3.5
2016-05-25 17:36:42 +02:00
Carles Barrobés
4183ce7734
Bump version to 1.0.2
2016-05-20 09:31:15 +02:00
Carles Barrobés
7deff64010
Remove broken badge 'caniusepython3'
2016-05-20 09:28:17 +02:00
Carles Barrobés
e206737396
Flake8: make lambda into 'def' function
2016-05-20 09:28:16 +02:00
Carles Barrobés
855c7f18f2
RTD build trigger to use project name
2016-05-20 09:20:22 +02:00
Felix Yan
3b516c98e3
Note explicit support for Python 3.5
2016-05-20 13:42:47 +08:00
Carles Barrobés
db03b606fe
Merge pull request #37 from redixin/fix_test_instance
...
Fix unittest with object instance as data
2015-11-19 08:49:36 +01:00
Sergey Skripnick
90b0051868
Fix unittest with object instance as data
2015-11-19 00:15:19 +02:00
Carles Barrobés
0571a171e2
Bump version to 1.0.1
2015-11-18 23:09:31 +01:00
Carles Barrobés
9fcc499bd3
Merge pull request #36 from redixin/fix_mock_testr
...
Fix different test names with different runs
2015-11-18 23:03:08 +01:00
Sergey Skripnick
e081f9c7f5
Fix different test names with different runs
...
Remove hash randomization checking. Simply do not mess with
non-trivial values. Simple enumerated test names are much better
then long ugly names with many underscores.
2015-11-18 23:56:30 +02:00
Carles Barrobés
2aba9789a1
Fix badges
2015-10-26 18:05:05 +01:00
Carles Barrobés i Meix
57c1b23223
Merge pull request #34 from carlgeorge/six-minimum-version
...
specify minimum version of six
2015-10-01 15:23:45 +02:00
carlgeorge
e75de46c0b
specify minimum version of six
2015-10-01 08:12:37 -05:00
Carles Barrobés i Meix
7ed3a52a69
Merge pull request #22 from garymacindoe/master
...
Add ability to parse dicts of dicts in JSON to pass kwargs.
2015-09-23 11:56:31 +02:00
Carles Barrobés i Meix
7ca1ad2283
Merge pull request #33 from domidimi/master
...
docstring: Add decorator to format the docstrings
2015-08-11 19:14:17 +02:00
domidimi
26b7752ada
docstring: Format the docstrings
...
Some test frameworks like nose use the docstring to output information
about a test. In the case of generated tests all of them would get the
same description. Format of the docstring for each generated test
function using the test values.
Example:
@data(1,2)
def test_A(value):
"""Test A for value {}"""
...
executed with "nosetests -v", will output:
Test A for value 1
Test A for value 2
Signed-off-by: domidimi@github.com
2015-08-10 23:14:55 +02:00
Carles Barrobés i Meix
9e9998bd13
Merge pull request #26 from stevepeak/master
...
Coverage reporting
2015-05-14 13:55:03 +02:00
Carles Barrobés i Meix
ef48408c1f
Merge pull request #28 from mycharis/mycharis-fix-tox-ini
...
Let flake8 pull a version of pep8 it requires
2015-05-14 13:48:27 +02:00
Jan Holeček
7750da36ed
Let flake8 pull a version of pep8 it requires (pip requirements fixed)
...
flake8-2.4.0 does not support pep8>=1.6.0 which resulted in dependency conflict with the latest stable 1.6.2
2015-05-14 13:39:57 +02:00
Jan Holeček
d363f472fd
Let flake8 pull a version of pep8 it requires
...
flake8-2.4.0 does not support pep8>=1.6.0 which resulted in dependency conflict with the latest stable 1.6.2
2015-05-14 10:46:58 +02:00
stevepeak
5b2e6acb08
add badge
2015-03-24 14:08:10 +08:00