1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-15 12:55:51 +01:00
pypiserver/tests/test_docs.py

15 lines
405 B
Python
Raw Normal View History

#! /usr/bin/env py.test
import pytest
import re
from pypiserver import version as my_ver
@pytest.fixture()
def readme():
return open('README.rst', 'rt').read()
def test_READMEversion(readme):
m = re.compile(r'^\s*:Version:\s*(.+)\s*$', re.MULTILINE).search(readme)
assert m, "Could not find version on README!"
assert m.group(1) == my_ver, 'Updaed version(%s) on README!' % m.group(1)