Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adriamontoto/object-mother-pattern

The Object Mother Pattern is a Python ๐Ÿ package that simplifies and standardizes the creation of test ๐Ÿงช objects.
https://github.com/adriamontoto/object-mother-pattern

development object-mother pattern python python3 python311 python312 python313 testing tools utilities validation

Last synced: about 1 month ago
JSON representation

The Object Mother Pattern is a Python ๐Ÿ package that simplifies and standardizes the creation of test ๐Ÿงช objects.

Awesome Lists containing this project

README

        

# โš’๏ธ Object Mother Pattern



Test Pipeline


Lint Pipeline


Coverage Pipeline


Package Version


Supported Python Versions

The **Object Mother Pattern** is a Python ๐Ÿ package that simplifies and standardizes the creation of test ๐Ÿงช objects. This pattern is especially helpful in testing scenarios where you need to generate multiple instances of complex objects quickly and consistently. By providing a set of prebuilt ๐Ÿ› ๏ธ object mothers, you can drop these into your existing test suite and skip the boilerplate setup yourself.

Easy to install and integrate, the **Object Mother Pattern** is a must-have for any Python developer looking to simplify their testing workflow, ensure design uniformity, and leverage the full potential of reusable test objects in their projects ๐Ÿš€.


## Table of Contents

- [๐Ÿ“ฅ Installation](#installation)
- [๐Ÿค Contributing](#contributing)
- [๐Ÿ”‘ License](#license)


๐Ÿ”ผ Back to top



## ๐Ÿ“ฅ Installation

You can install **Object Mother Pattern** using `pip`:

```bash
pip install object-mother-pattern
```


๐Ÿ”ผ Back to top



## ๐Ÿค Contributing

We welcome contributions to **Object Mother Pattern**! To ensure a smooth collaboration process, please follow the guidelines below.

### How to Contribute

**1. Fork the Repository:** Click the "Fork" button at the top right of the repository page.

**2. Clone Your Fork:**

```bash
git clone git+ssh://[email protected]//object-mother-pattern
```

**3. Create a Branch:**

```bash
git checkout -b feature/your-feature-name
```

**4. Make Your Changes:** Implement your new feature or fix a bug.

**5. Run Tests:** Ensure all the following tests pass before submitting your changes.

- Run tests:

```bash
make test
```

- Run tests with coverage:

```bash
make coverage
```

- Run linter:

```bash
make lint
```

- Run formatter:

```bash
make format
```

**6. Commit Your Changes:**

```bash
git commit -m "โœจ feature: your feature description"
```

**7. Push to Your Fork:**

```bash
git push origin feature/your-feature-name
```

**8. Create a Pull Request:** Navigate to the original repository and create a pull request from your fork.

**9. Wait for Review:** Your pull request will be reviewed by the maintainers. Make any necessary changes based on their feedback.


๐Ÿ”ผ Back to top



## ๐Ÿ”‘ License

This project is licensed under the terms of the [`MIT license`](https://github.com/adriamontoto/object-mother-pattern/blob/master/LICENSE.md).


๐Ÿ”ผ Back to top