File: test_readme.py

package info (click to toggle)
python-munch 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: python: 761; makefile: 20
file content (16 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import doctest
import os
import pytest

_HERE = os.path.abspath(os.path.dirname(__file__))
_README_PATH = os.path.join(_HERE, '..', 'README.md')
assert os.path.exists(_README_PATH)


@pytest.mark.usefixtures("yaml")
def test_readme():
    globs = {
        'print_function': print
    }
    result = doctest.testfile(_README_PATH, module_relative=False, globs=globs)
    assert not result.failed