I set my phone to DnD.
You have to roll an 18 or better for me to answer
Profile
npub1j7su...hmke
npub1j7su...hmke
I could use some sci-fi audio book recommendations. Anyone got some suggestions?
Mocking in Python with unittest.mock
- re-release of 2021 episode with Michael Foord
- Test & Code
https://testandcode.com/episodes/unittest-mock
#Python #testing
pytest-mock : Mocking in pytest
Test & Code episode
https://testandcode.com/episodes/pytest-mock
- Why the pytest-mock plugin is awesome
- Mocking, patching, monkeypatching
- Mocks, fakes, stubs and spies
- Why do we need these for testing
- pytest-mock as a curated wrapper around unittest.mock
#Python #pytest #mock
In Python, globals are fine.
- unpopular opinion
A “global” is just global to a module, so it’s not really global, it’s contained in the module namespace.
A module with functions and “global” data can be thought of as a singleton object in a lot of cases.
Chill on the no globals thing.
I’m looking forward to Tuesday, as it’s a day that is never “cyber” or “black” and can just be Tuesday.
I just started using architecture decision records.
I’m liking it so far, even for solo projects.
I’m just using an in-repo docs/adr folder and using hand copy/paste/modify markdown files with one template file. Nothing fancy.
A couple resources for ADRs
-
- https://www.redhat.com/architecture-decision-records
Cognitect.com
Documenting Architecture Decisions
I think cell carriers should be able to tell this is phishing and just block this

