[PR #518] [CLOSED] Add sure to list of Testing Frameworks #471

Closed
opened 2025-11-06 12:34:12 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/518
Author: @timofurrer
Created: 11/30/2015
Status: Closed

Base: masterHead: add-sure


📝 Commits (1)

  • 5e4744f Add sure to list of Testing Frameworks

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

sure is an awesome testing library which provides powerful and flexible assertions.

This library is awesome because it monkey-patches all python objects with methods like should or when or to:

import sure

(2 + 2).should.be.equal(4)
(3.4 + 4).should.eql(7.5)

{'foo': 'bar'}.should.equal({'foo': 'bar'})
{'foo': 'bar'}.should.have.key('foo').which.should.equal('bar')

step.run.when.called_with(some_id=1).should.return_value(Step.PASSED)

It makes it really easy to use and the the test cases are super readable and maintainable.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/518 **Author:** [@timofurrer](https://github.com/timofurrer) **Created:** 11/30/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add-sure` --- ### 📝 Commits (1) - [`5e4744f`](https://github.com/vinta/awesome-python/commit/5e4744f7bed2389773ae760ea5476ccfc080ffb5) Add sure to list of Testing Frameworks ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description `sure` is an awesome testing library which provides powerful and flexible assertions. This library is awesome because it monkey-patches all python objects with methods like `should` or `when` or `to`: ``` python import sure (2 + 2).should.be.equal(4) (3.4 + 4).should.eql(7.5) {'foo': 'bar'}.should.equal({'foo': 'bar'}) {'foo': 'bar'}.should.have.key('foo').which.should.equal('bar') step.run.when.called_with(some_id=1).should.return_value(Step.PASSED) ``` It makes it really easy to use and the the test cases are super readable and maintainable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 12:34:12 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#471