{"id":13771580,"url":"https://github.com/jaimegildesagredo/expects","last_synced_at":"2025-10-21T19:04:30.495Z","repository":{"id":57427661,"uuid":"10266355","full_name":"jaimegildesagredo/expects","owner":"jaimegildesagredo","description":"Expects is an expressive and extensible TDD/BDD assertion library for Python.","archived":false,"fork":false,"pushed_at":"2025-02-17T23:33:31.000Z","size":487,"stargazers_count":219,"open_issues_count":19,"forks_count":32,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-21T22:45:50.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://expects.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaimegildesagredo.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-24T12:55:59.000Z","updated_at":"2025-04-17T07:23:39.000Z","dependencies_parsed_at":"2023-01-22T06:03:05.157Z","dependency_job_id":null,"html_url":"https://github.com/jaimegildesagredo/expects","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimegildesagredo%2Fexpects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimegildesagredo%2Fexpects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimegildesagredo%2Fexpects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimegildesagredo%2Fexpects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaimegildesagredo","download_url":"https://codeload.github.com/jaimegildesagredo/expects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:53.007Z","updated_at":"2025-10-21T19:04:25.433Z","avatar_url":"https://github.com/jaimegildesagredo.png","language":"Python","funding_links":[],"categories":["Assertions"],"sub_categories":[],"readme":"Expects\n=======\n\n.. image:: https://img.shields.io/pypi/v/expects.svg\n    :target: https://pypi.python.org/pypi/expects\n    :alt: Latest version\n\n.. image:: https://img.shields.io/badge/Docs-latest-brightgreen.svg\n    :target: http://expects.readthedocs.io/en/latest\n    :alt: Docs\n\n.. image:: https://img.shields.io/badge/Licence-Apache2-brightgreen.svg\n    :target: https://www.tldrlegal.com/l/apache2\n    :alt: License\n\n.. image:: https://github.com/jaimegildesagredo/expects/actions/workflows/pipeline.yml/badge.svg\n    :target: https://github.com/jaimegildesagredo/expects/actions/workflows/pipeline.yml\n    :alt: Build status\n\n.. image:: https://img.shields.io/pypi/pyversions/expects.svg\n    :target: https://pypi.python.org/pypi/expects\n    :alt: PyPI versions\n\n**Expects** is an *expressive* and *extensible* TDD/BDD assertion library for Python. Expects can be *extended* by defining `new matchers \u003chttp://expects.readthedocs.io/en/latest/custom-matchers.html\u003e`_.\n\nUsage\n-----\n\nJust import the ``expect`` callable and the `built-in matchers \u003chttp://expects.readthedocs.io/en/latest/matchers.html\u003e`_ and start writing test assertions.\n\n.. code-block:: python\n\n    from expects import *\n\n    expect([]).to(be_empty)\n\n    expect(False).not_to(be_true)\n\n    expect({\n        'name': 'Jack',\n        'email': 'jack@example.com'\n    }).to(have_key('name', match('\\w+')))\n\n    expect(str).to(have_property('split') \u0026 be_callable)\n\n    expect(lambda: foo).to(raise_error(NameError))\n\n    expect('Foo').to(equal('Bar') | equal('Foo'))\n\nInstallation\n------------\n\nYou can install the last stable release of Expects from PyPI using pip or easy_install.\n\n.. code-block:: bash\n\n    $ pip install expects\n\nAlso you can install the latest sources from Github.\n\n.. code-block:: bash\n\n     $ pip install -e git+git://github.com/jaimegildesagredo/expects.git#egg=expects\n\nSpecs\n-----\n\nTo run the Expects specs you should install the development requirements and then run `mamba`.\n\n.. code-block:: bash\n\n    $ pip install -r test-requirements.txt\n    $ mamba\n\nChanges\n-------\n\nSee `Changes  \u003chttps://expects.readthedocs.io/en/latest/changes.html\u003e`_.\n\n3rd Party Matchers\n------------------\n\nSee `3rd-Party Matchers list \u003chttp://expects.readthedocs.io/en/latest/3rd-party-matchers.html\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimegildesagredo%2Fexpects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaimegildesagredo%2Fexpects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimegildesagredo%2Fexpects/lists"}