Skip to content

Releases: adriamontoto/object-mother-pattern

v2025.01.12

12 Jan 15:24
fc39985
Compare
Choose a tag to compare

Changelog

🔨 Refactoring

  • Mother Class Reorganization:
    • Reorganized mother classes into date and identifier modules.
    • Renamed BoolMother to BooleanMother for consistency.

👷🏻 CI/CD Improvements

  • Dependency Updates:
    • Bumped actions/upload-artifact from 4.5.0 to 4.6.0.
    • Bumped github/codeql-action from 3.27.9 to 3.28.1.

Full Changelog

v2025.01.03

03 Jan 11:01
675450a
Compare
Choose a tag to compare

Changelog

✨ Features

  • Mother Classes Enhancements:
    • Implemented BytesMother.
    • Implemented StringUUIDMother and UUIDMother classes with corresponding tests.
    • Updated FloatMother to allow random decimal places when not specified.
    • Implemented DateMother and DatetimeMother with corresponding tests.

🔨 Refactoring

  • Code Improvements:
    • Updated import paths for consistency across mother classes.
    • Improved type checking for value parameters in various mother classes.

🐛 Bug Fixes

  • Mother Class Fixes:

    • Improved error messages and handled edge cases in FloatMother.
    • Implemented timezone awareness in DatetimeMother.
    • Updated StringDatetimeMother tests to use DatetimeMother for initialization.
    • Streamlined FloatMother to correctly handle equal min and max values.
    • Added coverage pragma comments for DatetimeMother, NameMother, list, set, tuple, dict, and dictionary edge cases.
  • Testing and Coverage Enhancements:

    • Added coverage pragma comments for edge case handling in NameMother.
    • Updated bug template for consistency.

🧪 Tests

  • Implemented test modules for BytesMother, StringMother, and FloatMother.

📚 Documentation

  • Readme and Usage Documentation:
    • Added a utilization section with examples and real-life use cases.
    • Updated example outputs in README, BytesMother, StringMother, and FloatMother.
    • Added contributing guidelines to README.

📦 Build

  • Updated .gitignore to exclude coverage and environment folders.
  • Removed pytest-asyncio from development requirements.

👷🏻 CI/CD

  • Removed JSON files checker from pre-commit configuration.

🔧 Chores

  • Updated comments in .gitignore for clarity and consistency.
  • Corrected typo in .gitignore comments.
  • Updated license reference in pyproject.toml to point to LICENSE file.
  • Updated version to 2025.01.03.

Full Changelog

v2024.12.21

21 Dec 23:04
b93e5bc
Compare
Choose a tag to compare
v2024.12.21 Pre-release
Pre-release

Changelog

✨ Features

  • Mother Classes for Random Value Generation:
    • Implemented BaseMother as a foundational class for generating random values.
    • Added IntegerMother for generating random integers.
    • Added BoolMother for generating random boolean values.
    • Implemented StringMother for generating random string values.
    • Added FloatMother for generating random float values.
    • Implemented TextMother for generating random text values.
    • Created NameMother class for generating random name values.

🔨 Refactoring

  • Directory and File Organization:

    • Reorganized BoolMother and IntegerMother into the primitives directory.
    • Moved primitives-related tests to a dedicated primitives test folder.
    • Updated import of override for compatibility with Python 3.11.
    • Replaced string 'invalid' with IntegerMother.invalid_type() in IntegerMother tests.
    • Removed redundant type and value checks in IntegerMother.
  • Code Quality and Maintenance:

    • Updated date generation method for improved efficiency.
    • Ran automatic code formatter for consistent style.

🐛 Bug Fixes

  • Resolved issue with invalid type NoneType handling in IntegerMother.

Full Changelog