Andy BarnesinStackademicPython — Why you should use TypeguardTypeguard is a runtime type checker for Python. It checks that arguments and return types of functions match their annotations as your…Jan 91Jan 91
Andy BarnesHow to load Python modules dynamicallyDynamic module imports are useful if you need to import modules that you do not know the name of when writing your code and therefore can…Dec 24, 2023Dec 24, 2023
Andy BarnesPytest — How to speed up your testsThis post will cover several techniques that you can use to speed up your pytest suite to hopefully make your test times a little more…Dec 10, 2023Dec 10, 2023
Andy BarnesPytest — Fixture ScopeFixture scope allows you to configure the ‘scope’, or lifetime, of a fixture. It’s set by passing the scope parameter on the creation of…Nov 26, 20231Nov 26, 20231
Andy BarnesPytest — Fixture Teardown (Yield Fixtures)A yield fixture works the same as a normal return fixture, however, it allows you to run additional code when the test finishes. When a…Nov 12, 2023Nov 12, 2023
Andy BarnesPytest — Indirect ParametrizationThis post will cover what “indirect parametrization” (sometimes known as “reverse parametrization”) is within pytest and how it can be…Oct 30, 2023Oct 30, 2023