Borutzki

@borutzki
59 Followers
95 Following
661 Posts

#Pythonista 🐍 | #RobotFramework specialist 🤖 | #GitLab CI/CD tweaker 🦊 | #Django dev 🧑‍💻 | #QA engineer 👌

Coding for people, not just processors.

Aside, some stuff about gym, music and books.

Microblogging in both polish and english. 🇵🇱🇬🇧

Zawieruszony Blog (🇵🇱)https://zawieruszony.blog
My Personal Blog (🇵🇱)https://borutzki.wordpress.com
Xięgozbiór (🇵🇱)https://xiegozbior.pl/
My Technical Blog (🐍)https://borutzki.github.io/

When preparing the previous post, I noticed that Safari browser has a long-lived bug (or feature?) that does not allow for copy-pasting images.

It copies links to images instead.

There’s a thread from 2023 about it, and it’s still behaving like that: https://discussions.apple.com/thread/254612911?sortBy=rank

I keep giving chances to various tools (browsers, IDEs, text editors, blablabla), but imagine having to run Firefox only to copy an image from an image generator, because Safari can’t handle such use case 🫠

Issues with "Copy Image" in Safari - Apple Community

API Reference - pytest documentation

You wouldn’t believe how many times I looked this up on Stack Overflow, and used solution proposed in the top thread found in Google.

Apparently not only I did it "the wrong way", but also wasted time each time for it (now I know I can just refer to IDE autocompletion for `raises` arguments).

I kept forgetting how to assert exception messages in PyTest, so I finally checked the docs.

Here’s a reference snippet 🐍

#TIL #DailyPythonista #PyTest #TDD #Python #programming

https://borutzki.github.io/2026/03/30/how-to-assert-exception-message-in-pytest.html

Imagine this: after sitting on some dinner for 2 hours, you notice that two random folks joined your #Spotify Jam on some TV you had no idea existed, playing music with your account (and scrobbling to your Last.FM by that).

And it's apparently not a security breach nor leaked password.

It's just an "interesting" bug in Spotify's Jam functionality.

Imagine you take a shower and some folk 500km away changes your music playing in the background because of this 🫠

See: https://community.spotify.com/t5/Other-Podcasts-Partners-etc/My-Spotify-has-started-randomly-sending-jams-to-people-near-me/td-p/6693543

As someone who’s been maintaining FOSS projects of various levels of popularity for more than a decade, I need y’all to understand one thing: LLMs didn’t change the median PR quality. (1/6)

#TIL: If you work with complex domain, you should start with proper model of that domain.

If the model is missing, no amount of scripts or workarounds will make the code readable.

(yep, I've been reading a book on #DDD recently)

Have you ever seen the typing.overload decorator in the wild and wondered what it's actually for?

I wrote a short blog post explaining the problem it solves and how to use it in practice. 🐍

https://borutzki.github.io/2026/02/07/how-to-use-overloaded-signatures-in-python.html

#Python #programming #DailyPythonista

@borutzki Thanks, this is great. I tweaked it in a blog post: https://nedbatchelder.com/blog/202601/testing_exceptions_and_caches
Testing: exceptions and caches

Nicer ways to test exceptions and to test cached function results.

Debugger is fun and stuff but sometimes it's just faster to dump Django ORM data to a JSON, skim through it, apply fixes and forget about the topic.

Here's how to do that programmatically, e.g. during TestCase execution.

#Django #Python #programming #DailyPythonista #TDD

https://borutzki.github.io/2026/01/25/how-to-dump-django-orm-data-to-json-while-debugging.html