Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

expects

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expects - npm Package Compare versions

Comparing version
0.7.1
to
0.7.2
+1
-1
docs/conf.py

@@ -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

@@ -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])
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

[egg_info]
tag_date = 0
tag_svn_revision = 0
tag_build =
tag_svn_revision = 0

@@ -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)))