1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/tests/test_docs.py
Kostis Anagnostopoulos at STUW025 dc8f62c04f FIX #92: docs: Update version on README
+ Add README-version TC.
2015-09-14 18:55:16 +02:00

15 lines
405 B
Python

#! /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)