Skip to content

Mock datetime.datetime.now() in tests - #240

Merged
MarkZH merged 3 commits into
mainfrom
mock-now
Apr 12, 2026
Merged

Mock datetime.datetime.now() in tests#240
MarkZH merged 3 commits into
mainfrom
mock-now

Conversation

@MarkZH

@MarkZH MarkZH commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Remove need for --timestamp command line parameter.

Reference issue: #232

Remove need for --timestamp command line parameter.

Reference issue: #232
@MarkZH

MarkZH commented Apr 11, 2026

Copy link
Copy Markdown
Owner Author
  • Integrate unique_timestamp() into Now_Mock so that it is used when the __init__() argument is None.

@MarkZH

MarkZH commented Apr 12, 2026

Copy link
Copy Markdown
Owner Author

After this PR is merged, there should be no code in any file besides test.py that is only there for testing. All code in the lib folder is used and tested as is.

@MarkZH
MarkZH marked this pull request as ready for review April 12, 2026 01:39
@MarkZH
MarkZH merged commit 72eb533 into main Apr 12, 2026
6 checks passed
@MarkZH
MarkZH deleted the mock-now branch April 12, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant