# Searching for RH Counterexamples -- Setting up Pytest

DevFeed: [Searching for RH Counterexamples -- Setting up Pytest](<https://devfeed.tech/articles/searching-for-rh-counterexamples-setting-up-pytest-40438.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2020/09/11/searching-for-rh-counterexamples-setting-up-pytest/>)

Published: 2020-09-11T15:51:48Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Pytest](<https://devfeed.tech/topics/pytest.md>), [Python](<https://devfeed.tech/topics/python.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Code](<https://devfeed.tech/topics/code.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [development-environment](<https://devfeed.tech/tags/development-environment.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [number-theory](<https://devfeed.tech/tags/number-theory.md>), [programming](<https://devfeed.tech/tags/programming.md>), [project-organization](<https://devfeed.tech/tags/project-organization.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [riemann-hypothesis](<https://devfeed.tech/tags/riemann-hypothesis.md>), [setup](<https://devfeed.tech/tags/setup.md>), [shell](<https://devfeed.tech/tags/shell.md>), [software](<https://devfeed.tech/tags/software.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A hands-on tutorial that sets up a Python 3.8 project with pytest and Git, using a search for counterexamples related to the Riemann Hypothesis as the example problem. It explains terminal-based project setup, testing, organization, and how design evolves during development.

## Source excerpt

Some mathy-programmy people tell me they want to test their code, but struggle to get set up with a testing framework. I suspect it's due to a mix of: There are too many choices with a blank slate. Making slightly wrong choices early on causes things to fail in unexpected ways. I suspect the same concerns apply to general project organization and architecture. Because Python is popular for mathy-programmies, I'll build a Python project that shows how I organize my projects and and test my code, and how that shapes the design and evolution of my software.