Peano
Loading...
Searching...
No Matches
conftest Namespace Reference

Repository-wide pytest configuration for everything under tests/. More...

Functions

 pytest_configure (config)
 Write the log of peano4.api.Logger into a temporary directory.
 

Variables

list collect_ignore_glob
 

Detailed Description

Repository-wide pytest configuration for everything under tests/.

Some ExaParty experiment scripts are called test_*.py but are command-line generator scripts, not pytest modules. Importing them would run the generator, so we exclude them from collection. Their pytest entry point is tests/exaparty/test_exaparty.py.

Function Documentation

◆ pytest_configure()

conftest.pytest_configure (   config)

Write the log of peano4.api.Logger into a temporary directory.

The logger flushes its log into log.md in the current working directory when the interpreter exits. Without this hook, every pytest run would leave a log-<timestamp>.md file in the repository root.

Definition at line 19 of file conftest.py.

Variable Documentation

◆ collect_ignore_glob

list conftest.collect_ignore_glob
Initial value:
1= [
2 "exaparty/*/test_periodic_BC-*.py",
3 "exaparty/*/test_smoothing_length_computation_*.py",
4]

Definition at line 13 of file conftest.py.