Project Euler Solutions
Functions | Variables
python.test_euler Namespace Reference

Functions

def key (request)
 
def test_groupwise
 
def test_is_prime
 
def test_problem
 

Variables

 PY_FOLDER = pathlib.Path(__file__).parent
 
dictionary answers
 
dictionary known_slow = {73, 76, 118, 145, 357}
 
 IN_TERMUX = bool(shutil.which('termux-setup-storage'))
 
 _raw_NO_SLOW = os.environ.get('NO_SLOW')
 
 _parsed_NO_SLOW = _raw_NO_SLOW
 
 _raw_ONLY_SLOW = os.environ.get('ONLY_SLOW')
 
 _parsed_ONLY_SLOW = _raw_ONLY_SLOW
 
 _raw_NO_OPTIONAL_TESTS = os.environ.get('NO_OPTIONAL_TESTS')
 
 _parsed_NO_OPTIONAL_TESTS = _raw_NO_OPTIONAL_TESTS
 
tuple NO_SLOW = ((IN_TERMUX and _parsed_NO_SLOW is None) or _parsed_NO_SLOW)andnot_parsed_ONLY_SLOW
 
 ONLY_SLOW = _parsed_ONLY_SLOWandnot_parsed_NO_SLOW
 
tuple NO_OPTIONAL_TESTS = (_parsed_NO_OPTIONAL_TESTS is None and ONLY_SLOW)or_parsed_NO_OPTIONAL_TESTS
 
 params
 

Function Documentation

def python.test_euler.key (   request)
def python.test_euler.test_groupwise (   benchmark)
def python.test_euler.test_is_prime (   benchmark)
def python.test_euler.test_problem (   benchmark)

Variable Documentation

python.test_euler._parsed_NO_OPTIONAL_TESTS = _raw_NO_OPTIONAL_TESTS
private
python.test_euler._parsed_NO_SLOW = _raw_NO_SLOW
private
python.test_euler._parsed_ONLY_SLOW = _raw_ONLY_SLOW
private
python.test_euler._raw_NO_OPTIONAL_TESTS = os.environ.get('NO_OPTIONAL_TESTS')
private
python.test_euler._raw_NO_SLOW = os.environ.get('NO_SLOW')
private
python.test_euler._raw_ONLY_SLOW = os.environ.get('ONLY_SLOW')
private
dictionary python.test_euler.answers
python.test_euler.IN_TERMUX = bool(shutil.which('termux-setup-storage'))
dictionary python.test_euler.known_slow = {73, 76, 118, 145, 357}
tuple python.test_euler.NO_OPTIONAL_TESTS = (_parsed_NO_OPTIONAL_TESTS is None and ONLY_SLOW)or_parsed_NO_OPTIONAL_TESTS
tuple python.test_euler.NO_SLOW = ((IN_TERMUX and _parsed_NO_SLOW is None) or _parsed_NO_SLOW)andnot_parsed_ONLY_SLOW
python.test_euler.ONLY_SLOW = _parsed_ONLY_SLOWandnot_parsed_NO_SLOW
python.test_euler.params
python.test_euler.PY_FOLDER = pathlib.Path(__file__).parent