Releases: adriamontoto/object-mother-pattern
Releases · adriamontoto/object-mother-pattern
v2025.01.12
Changelog
🔨 Refactoring
- Mother Class Reorganization:
- Reorganized mother classes into
date
andidentifier
modules. - Renamed
BoolMother
toBooleanMother
for consistency.
- Reorganized mother classes into
👷🏻 CI/CD Improvements
- Dependency Updates:
- Bumped
actions/upload-artifact
from4.5.0
to4.6.0
. - Bumped
github/codeql-action
from3.27.9
to3.28.1
.
- Bumped
v2025.01.03
Changelog
✨ Features
- Mother Classes Enhancements:
- Implemented
BytesMother
. - Implemented
StringUUIDMother
andUUIDMother
classes with corresponding tests. - Updated
FloatMother
to allow random decimal places when not specified. - Implemented
DateMother
andDatetimeMother
with corresponding tests.
- Implemented
🔨 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 useDatetimeMother
for initialization. - Streamlined
FloatMother
to correctly handle equalmin
andmax
values. - Added coverage pragma comments for
DatetimeMother
,NameMother
,list
,set
,tuple
,dict
, and dictionary edge cases.
- Improved error messages and handled edge cases in
-
Testing and Coverage Enhancements:
- Added coverage pragma comments for edge case handling in
NameMother
. - Updated bug template for consistency.
- Added coverage pragma comments for edge case handling in
🧪 Tests
- Implemented test modules for
BytesMother
,StringMother
, andFloatMother
.
📚 Documentation
- Readme and Usage Documentation:
- Added a utilization section with examples and real-life use cases.
- Updated example outputs in
README
,BytesMother
,StringMother
, andFloatMother
. - 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 toLICENSE
file. - Updated version to
2025.01.03
.
v2024.12.21
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.
- Implemented
🔨 Refactoring
-
Directory and File Organization:
- Reorganized
BoolMother
andIntegerMother
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'
withIntegerMother.invalid_type()
inIntegerMother
tests. - Removed redundant type and value checks in
IntegerMother
.
- Reorganized
-
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 inIntegerMother
.