expects
Advanced tools
+1
-1
@@ -62,3 +62,3 @@ # -*- coding: utf-8 -*- | ||
| # The full version, including alpha/beta/rc tags. | ||
| release = '0.7.1' | ||
| release = '0.7.2' | ||
@@ -65,0 +65,0 @@ # The language for content autogenerated by Sphinx. Refer to documentation |
| Metadata-Version: 1.1 | ||
| Name: expects | ||
| Version: 0.7.1 | ||
| Version: 0.7.2 | ||
| Summary: Expressive and extensible TDD/BDD assertion library for Python | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/jaimegildesagredo/expects |
+1
-2
@@ -14,3 +14,3 @@ # -*- coding: utf-8 -* | ||
| for arg in args: | ||
| if hasattr(arg, '_description'): | ||
| if isinstance(arg, Matcher): | ||
| tokens.append(arg._description(None)) | ||
@@ -39,4 +39,3 @@ else: | ||
| def _sorted_items(dct): | ||
| return sorted(dct.items(), key=lambda args: args[0]) |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: expects | ||
| Version: 0.7.1 | ||
| Version: 0.7.2 | ||
| Summary: Expressive and extensible TDD/BDD assertion library for Python | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/jaimegildesagredo/expects |
+1
-1
| [egg_info] | ||
| tag_date = 0 | ||
| tag_svn_revision = 0 | ||
| tag_build = | ||
| tag_svn_revision = 0 | ||
+1
-1
@@ -9,3 +9,3 @@ # -*- coding: utf-8 -*- | ||
| name='expects', | ||
| version='0.7.1', | ||
| version='0.7.2', | ||
| description='Expressive and extensible TDD/BDD assertion library for Python', | ||
@@ -12,0 +12,0 @@ long_description=long_description, |
@@ -38,1 +38,22 @@ # -*- coding: utf-8 -*- | ||
| "'b' equal 1 and 'c' equal 2")) | ||
| with context('one matcher'): | ||
| with it('returns matcher description'): | ||
| result = plain_enumerate((equal(1),)) | ||
| expect(result).to(equal("equal 1")) | ||
| with context('any object with a _description method'): | ||
| # https://github.com/jaimegildesagredo/expects/issues/26 | ||
| # https://github.com/jaimegildesagredo/doublex-expects/issues/8 | ||
| with it('returns object repr'): | ||
| class Object(object): | ||
| def _description(self, *args, **kwargs): | ||
| pass | ||
| obj = Object() | ||
| result = plain_enumerate((obj,)) | ||
| expect(result).to(equal(repr(obj))) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
2360104
0.03%4373
0.32%