Sheepy

Latest version: v0.0.7

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.4

Added

* Added full support for API testing in the Sheepy test framework.
* Implemented `ApiRequests` module for handling HTTP requests (GET, POST, PUT, DELETE) in API tests.
* Introduced new assert methods: `assertStatusCode`, `assertJsonResponse`, and `assertResponseContains` to validate HTTP responses.
* Provided built-in HTTP error handling via the `HttpError` exception class.

0.0.3

Added

* SheepyTestCase: Implementation of the class that automatically registers and runs tests when inheriting.
* TestOutputFormatter: Module created to format test results, providing a clear and consistent view of the outputs.
* Assertions Module: Creation of a separate module (asserts.py) that includes assertion methods such as assertEqual, assertTrue, assertFalse, and assertRaises.

Changed

* Test Execution: Modification of the logic in the SheepyTestCase class to run tests when registering subclasses.
* Output Formats: Updated the _output_results method to use TestOutputFormatter, improving the presentation of test results.
* Code Structure: Removed assertion methods from the SheepyTestCase class to centralize the assertion logic in the new module.

Fixed
* Error Messages: Improvements in error messages for expected failures and tests.

0.0.2

changing the entire project structure, reorganizing and changing use cases. Improving to increasingly optimize unit tests.


Initial relase

Features

* **Test decoration**: Using the sheepy decorator to mark functions as test cases.
* **Test discovery**: Automatically finding test cases within a specified class.
* **Test runner**: Executing test cases and collecting results.
* **Basic reporting**: Generating a simple pass/fail report.
* **Logging**: Providing a mechanism for logging test execution details.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.