Resolving Merge Conflicts with Binary Files: A Step-by-Step Command Line Guide
The problem
During a git merge or rebase, you see the following merge conflict message:
During a git merge or rebase, you see the following merge conflict message:
I recently read the book The Software Craftsman: Professionalism, Pragmatism, Pride, by Sandro Mancuso and it highly resonated with me. Here’s an overview of the book with some of the highlights I made while reading it. I hope it piques your interest too.
In this blog post, we’ll explore a way to write unit tests for a Django model using Model Mommy. Our main focus is on the update_dog_from_data
function, which updates a Dog object with JSON data. However, the highlight is the technique to dynamically access attribute values in the tested object. By the end, you’ll learn some unit testing strategies and gain insights into dynamically interacting with object attributes during testing.
A while back I wrote about managing local git branches with git rebase and I mentioned that I always submit my code changes with one commit only. No matter how many commits I make during my development process in my local branch when I prepare my code for code review and push it to remote, I squash all commits into one single commit, with one single commit message using git rebase.
There are a few different approaches for writing tests for date and/or time-sensitive functionality.
One could choose to add a sleep()
in the test, which would guarantee that the time passed, but that also has the downside of increasing the run time of the test.