Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion civis/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.14.0"
__version__ = "1.14.1"
18 changes: 18 additions & 0 deletions civis/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os
import re

import civis


_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
_REPO_DIR = os.path.dirname(os.path.dirname(_THIS_DIR))


def test_version_number_match_with_changelog():
"""__version__ and CHANGELOG.md match for the latest version number."""
changelog = open(os.path.join(_REPO_DIR, 'CHANGELOG.md')).read()
version_in_changelog = (
re.search(r'##\s+(\d+\.\d+\.\d+)', changelog).groups()[0])
assert civis.__version__ == version_in_changelog, (
'Make sure both __version__ and CHANGELOG are updated to match the '
'latest version number')