In this post I want to share one way that you can authenticate as a service principal to run a Microsoft Fabric notebook from Azure DevOps.| K Chant
Python's assert is mainly used for debugging by allowing us to write sanity tests in our code.| GeekPython - Python Programming Tutorials
Test driven development is a method of software development in which tests are written before the code. This article explains everything about it.| QA Touch
How to construct domain-specific LLM evaluation systems.| hamel.dev
I’ll walk through our experiences using Large Language Models (LLMs) for user intent extraction. By this, I mean taking plain English queries and interpreting their semantic meaning in terms of cloud architecture. I’ll describe what led us to explore LLMs as an interface for cloud architectures, why our approach is different from other LLM cloud architecture products, and what lessons we learned along the way.| Klotho
Testing with AnyIO| anyio.readthedocs.io
In this post we will cover testing our code. Testing There are many many great resources out there for learning about testing software.| jacobtomlinson.dev
Learn how we build data lake infrastructures and help organizations all around the world achieving their data goals.| DareData Blog
Let’s take for example an incredibly simple code and imagine that it’s incredibly complicated logic. def cat(left, right): """Concatenate two given strings. """ return left + right Tests How can we be sure this code works? No, it’s not obvious. Remember the rules of the game, we have an incredibly complicated realization. So, we can’t say it works or not while we haven’t tested it. def test_cat(): result = cat(left='abc', right='def') assert result == 'abcdef' Now, run pytest:| blog.orsinium.dev
In part 7 of 8, we learn how to add testing to our `asyncio`-based chaos monkey-like service, Mayhem Mandrill.| roguelynn
This post will share 4 tips which will help you speed up your bug catching.| Matt Segal Dev
Long story short, pre-commit [https://pre-commit.com/] is great! Although this is a Python oriented blog and pre-commit happens to be written in Python, pre-commit is basically language independent. If you use git as VCS (who doesn't these days?), keep reading. I'll go though part of its awesomeness here with| Jerry Codes
A while back I was ranting about APLs and included this python code to get the mode of a list: def mode(l): max = None count = {} for x in l: if x not in count: count[x] = 0 count[x] += 1 if not max or count[x] > count[max]: max = x return max There’s a bug in it. Do you see it? If not, try running it on the list [0, 0, 1]:| Hillel Wayne
I recently read No excuses, write unit tests, which argues Unit Tests are Good and You Should Write Them. For the most part I strongly agree with their message, which is why I feel kinda bad criticizing the essay. They provide this as “an example of simple testing”: constadd=(...numbers) => { returnnumbers.reduce((acc, val) => { returnacc+val; }, 0); }; it('should add numbers', () => { constexpected=15; constactual=add(1, 2, 3, 4, 5); expect(actual).| Hillel Wayne
... in which we solve the day 17 problem from Advent of Code 2020, Conway Cubes, in a generic way, focusing on testing, refactoring, and idiomatic Python, in a way that helps you translate those skills to your regular, non-puzzle coding.| death and gravity
This was originally a newsletter post I wrote back in December, but I kept coming back to the idea and wanted to make it easier to find. I’ve made some small edits for flow. There’s a certain class of problems that’s hard to test: The output isn’t obviously inferable from the input. The code isn’t just solving a human-tractable problem really quickly, it’s doing something where we don’t know the answer without running the program.| Hillel Wayne
This was originally written as a tutorial for Hypothesis and will eventually be reproduced there, but it might still be useful for people using other property-testing libraries. This essay assumes some familiarity with Hypothesis. If you haven’t used it, a better introduction is here. Once you learn the basics, there are two hard parts to writing property-based tests: What are good properties to test? How do I generate complex inputs?| Hillel Wayne
Unit Testing in Nim : ## Unit Testing in Nim and Python Here's a snippet of a unittest test case that I wrote in Python some years ago: ```py| blog.zdsmith.com